Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit c7df648e authored by deuce's avatar deuce

Fix stupid Intel CC warnings.

parent f8f786bb
...@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment