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])
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)];
......
......@@ -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);
......
......@@ -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 */
......
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