Skip to content
Snippets Groups Projects
Commit c7df648e authored by deuce's avatar deuce
Browse files

Fix stupid Intel CC warnings.

parent f8f786bb
No related branches found
No related tags found
No related merge requests found
...@@ -275,7 +275,7 @@ BYTE* MD5CALL MD5_hex(BYTE* to, const BYTE digest[MD5_DIGEST_SIZE]) ...@@ -275,7 +275,7 @@ BYTE* MD5CALL MD5_hex(BYTE* to, const BYTE digest[MD5_DIGEST_SIZE])
BYTE const* from = digest; BYTE const* from = digest;
static char *hexdigits = "0123456789abcdef"; static char *hexdigits = "0123456789abcdef";
const BYTE *end = digest + MD5_DIGEST_SIZE; const BYTE *end = digest + MD5_DIGEST_SIZE;
char *d = to; char *d = (char *)to;
while (from < end) { while (from < end) {
*d++ = hexdigits[(*from >> 4)]; *d++ = hexdigits[(*from >> 4)];
......
...@@ -50,7 +50,7 @@ static char *binstr(uchar *buf, ushort length) ...@@ -50,7 +50,7 @@ static char *binstr(uchar *buf, ushort length)
&& buf[i]!='\r' && buf[i]!='\n' && buf[i]!='\t') && buf[i]!='\r' && buf[i]!='\n' && buf[i]!='\t')
break; break;
if(i==length) /* not binary */ if(i==length) /* not binary */
return(buf); return((char*)buf);
for(i=0;i<length;i++) { for(i=0;i<length;i++) {
sprintf(tmp,"%02X ",buf[i]); sprintf(tmp,"%02X ",buf[i]);
strcat(str,tmp); strcat(str,tmp);
......
...@@ -163,7 +163,7 @@ static char* strip_chars(uchar* dst, const uchar* src, uchar* set) ...@@ -163,7 +163,7 @@ static char* strip_chars(uchar* dst, const uchar* src, uchar* set)
} }
*dst=0; *dst=0;
return(dst); return((char *)dst);
} }
/* Allocates and calculates hashes of data (based on flags) */ /* 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 ...@@ -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 hash_t* SMBCALL smb_hashstr(ulong msgnum, ulong t, unsigned source, unsigned flags
,const char* str) ,const char* str)
{ {
char* p=(uchar*)str; char* p=(char *)str;
hash_t* hash; hash_t* hash;
if(flags&SMB_HASH_PROC_MASK) { /* string pre-processing */ if(flags&SMB_HASH_PROC_MASK) { /* string pre-processing */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment