Skip to content

Commit 15e0de3

Browse files
committed
libzpool: don't export random_init()/random_fini()
Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <[email protected]>
1 parent 2ffdcbc commit 15e0de3

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

include/sys/zfs_context.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ extern "C" {
142142
typedef off_t loff_t;
143143
#endif
144144

145-
extern void random_init(void);
146-
extern void random_fini(void);
147-
148145
/*
149146
* Kernel modules
150147
*/

lib/libzpool/kernel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,14 +777,14 @@ const char *random_path = "/dev/random";
777777
const char *urandom_path = "/dev/urandom";
778778
static int random_fd = -1, urandom_fd = -1;
779779

780-
void
780+
static void
781781
random_init(void)
782782
{
783783
VERIFY((random_fd = open(random_path, O_RDONLY | O_CLOEXEC)) != -1);
784784
VERIFY((urandom_fd = open(urandom_path, O_RDONLY | O_CLOEXEC)) != -1);
785785
}
786786

787-
void
787+
static void
788788
random_fini(void)
789789
{
790790
close(random_fd);

0 commit comments

Comments
 (0)