diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-11-25 19:02:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:08 -0500 |
commit | 3acaf09bd8e1c418e32a6a98a33f6df96a3d534b (patch) | |
tree | f01ae045e1230e9ed42bcd2a117035cd568b69b9 | |
parent | 5e6f2019f900d4f0517a6c4603684600fdbaa328 (diff) | |
download | samba-3acaf09bd8e1c418e32a6a98a33f6df96a3d534b.tar.gz samba-3acaf09bd8e1c418e32a6a98a33f6df96a3d534b.tar.bz2 samba-3acaf09bd8e1c418e32a6a98a33f6df96a3d534b.zip |
r3964: fix compiler warnings
metze
(This used to be commit f34171bbb3185aa5bc79915c060e09a36179307c)
-rw-r--r-- | source4/lib/genrand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/genrand.c b/source4/lib/genrand.c index 46a73e6d2e..b4651dffe8 100644 --- a/source4/lib/genrand.c +++ b/source4/lib/genrand.c @@ -196,7 +196,7 @@ static int do_reseed(BOOL use_fd, int fd) Interface to the (hopefully) good crypto random number generator. ********************************************************************/ -void generate_random_buffer( unsigned char *out, int len) +void generate_random_buffer(uint8_t *out, int len) { static int urand_fd = -1; unsigned char md4_buf[64]; @@ -271,7 +271,7 @@ char *generate_random_str_list(TALLOC_CTX *mem_ctx, size_t len, const char *list char *retstr = talloc(mem_ctx, len + 1); if (!retstr) return NULL; - generate_random_buffer(retstr, len); + generate_random_buffer((uint8_t *)retstr, len); for (i = 0; i < len; i++) { retstr[i] = list[retstr[i] % list_len]; } |