summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-05-29 07:34:51 +0000
committerTim Potter <tpot@samba.org>2001-05-29 07:34:51 +0000
commit1744a49cae89d47b1e6c69840a55d4c817f9c358 (patch)
treef81dfa918e78ac5f8f79bdbf79758f8d6f2e3663 /source3/lib
parentbbf5ea221aad91a99564ee130a6334d3b25e2a9a (diff)
downloadsamba-1744a49cae89d47b1e6c69840a55d4c817f9c358.tar.gz
samba-1744a49cae89d47b1e6c69840a55d4c817f9c358.tar.bz2
samba-1744a49cae89d47b1e6c69840a55d4c817f9c358.zip
Fixed compiler warning.
(This used to be commit adb61490af7bbd5f028892692bfe831af8c79f23)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/genrand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/genrand.c b/source3/lib/genrand.c
index 86b3b56696..d5556149af 100644
--- a/source3/lib/genrand.c
+++ b/source3/lib/genrand.c
@@ -106,7 +106,7 @@ static void get_random_stream(unsigned char *data, size_t datasize)
Note that the hash is not initialised.
*****************************************************************/
-static void do_filehash(char *fname, unsigned char *hash)
+static void do_filehash(char *fname, unsigned char *the_hash)
{
unsigned char buf[1011]; /* deliberate weird size */
unsigned char tmp_md4[16];
@@ -119,7 +119,7 @@ static void do_filehash(char *fname, unsigned char *hash)
while ((n = read(fd, (char *)buf, sizeof(buf))) > 0) {
mdfour(tmp_md4, buf, n);
for (n=0;n<16;n++)
- hash[n] ^= tmp_md4[n];
+ the_hash[n] ^= tmp_md4[n];
}
close(fd);
}