From c7df648e642ce9504a8f6e9b0ea3c2069c43eb2e Mon Sep 17 00:00:00 2001 From: deuce <> Date: Mon, 6 Jun 2005 23:08:21 +0000 Subject: [PATCH] Fix stupid Intel CC warnings. --- src/hash/md5.c | 2 +- src/smblib/smbdump.c | 2 +- src/smblib/smbhash.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hash/md5.c b/src/hash/md5.c index 2848954852..fecd84c678 100644 --- a/src/hash/md5.c +++ b/src/hash/md5.c @@ -275,7 +275,7 @@ BYTE* MD5CALL MD5_hex(BYTE* to, const BYTE digest[MD5_DIGEST_SIZE]) BYTE const* from = digest; static char *hexdigits = "0123456789abcdef"; const BYTE *end = digest + MD5_DIGEST_SIZE; - char *d = to; + char *d = (char *)to; while (from < end) { *d++ = hexdigits[(*from >> 4)]; diff --git a/src/smblib/smbdump.c b/src/smblib/smbdump.c index 47dbf9e2e3..2a44b7ad5d 100644 --- a/src/smblib/smbdump.c +++ b/src/smblib/smbdump.c @@ -50,7 +50,7 @@ static char *binstr(uchar *buf, ushort length) && buf[i]!='\r' && buf[i]!='\n' && buf[i]!='\t') break; if(i==length) /* not binary */ - return(buf); + return((char*)buf); for(i=0;i<length;i++) { sprintf(tmp,"%02X ",buf[i]); strcat(str,tmp); diff --git a/src/smblib/smbhash.c b/src/smblib/smbhash.c index e158657430..69718e689c 100644 --- a/src/smblib/smbhash.c +++ b/src/smblib/smbhash.c @@ -163,7 +163,7 @@ static char* strip_chars(uchar* dst, const uchar* src, uchar* set) } *dst=0; - return(dst); + return((char *)dst); } /* Allocates and calculates hashes of data (based on flags) */ @@ -198,7 +198,7 @@ hash_t* SMBCALL smb_hash(ulong msgnum, ulong t, unsigned source, unsigned flags hash_t* SMBCALL smb_hashstr(ulong msgnum, ulong t, unsigned source, unsigned flags ,const char* str) { - char* p=(uchar*)str; + char* p=(char *)str; hash_t* hash; if(flags&SMB_HASH_PROC_MASK) { /* string pre-processing */ -- GitLab