svn commit: samba r3964 - in branches/SAMBA_4_0/source/lib: .
metze at samba.org
metze at samba.org
Thu Nov 25 19:02:43 GMT 2004
Author: metze
Date: 2004-11-25 19:02:42 +0000 (Thu, 25 Nov 2004)
New Revision: 3964
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3964
Log:
fix compiler warnings
metze
Modified:
branches/SAMBA_4_0/source/lib/genrand.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/genrand.c
===================================================================
--- branches/SAMBA_4_0/source/lib/genrand.c 2004-11-25 19:01:35 UTC (rev 3963)
+++ branches/SAMBA_4_0/source/lib/genrand.c 2004-11-25 19:02:42 UTC (rev 3964)
@@ -196,7 +196,7 @@
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 *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];
}
More information about the samba-cvs
mailing list