diff options
Diffstat (limited to 'helper.c')
-rw-r--r-- | helper.c | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -45,18 +45,15 @@ | |||
45 | 45 | ||
46 | #include "rc4.h" | 46 | #include "rc4.h" |
47 | #include "xmalloc.h" | 47 | #include "xmalloc.h" |
48 | 48 | #include "config.h" | |
49 | #include "helper.h" | 49 | #include "helper.h" |
50 | 50 | ||
51 | #ifndef HAVE_ARC4RANDOM | ||
52 | |||
51 | void get_random_bytes(unsigned char *buf, int len); | 53 | void get_random_bytes(unsigned char *buf, int len); |
52 | 54 | ||
53 | static rc4_t *rc4 = NULL; | 55 | static rc4_t *rc4 = NULL; |
54 | 56 | ||
55 | void setproctitle(const char *fmt, ...) | ||
56 | { | ||
57 | /* FIXME */ | ||
58 | } | ||
59 | |||
60 | unsigned int arc4random(void) | 57 | unsigned int arc4random(void) |
61 | { | 58 | { |
62 | unsigned int r; | 59 | unsigned int r; |
@@ -105,4 +102,11 @@ void get_random_bytes(unsigned char *buf, int len) | |||
105 | exit(1); | 102 | exit(1); |
106 | } | 103 | } |
107 | } | 104 | } |
105 | #endif /* !HAVE_ARC4RANDOM */ | ||
108 | 106 | ||
107 | #ifndef HAVE_SETPROCTITLE | ||
108 | void setproctitle(const char *fmt, ...) | ||
109 | { | ||
110 | /* FIXME */ | ||
111 | } | ||
112 | #endif /* !HAVE_SETPROCTITLE */ | ||