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 a6f95bde authored by rswindell's avatar rswindell

Fixed gcc -Wall warnings.

parent 6cbf6f65
...@@ -54,7 +54,7 @@ int DLLCALL getmail(scfg_t* cfg, int usernumber, BOOL sent) ...@@ -54,7 +54,7 @@ int DLLCALL getmail(scfg_t* cfg, int usernumber, BOOL sent)
smb.retry_time=cfg->smb_retry_time; smb.retry_time=cfg->smb_retry_time;
sprintf(str,"%s.sid",smb.file); sprintf(str,"%s.sid",smb.file);
l=flength(str); l=flength(str);
if(l<sizeof(idxrec_t)) if(l<(long)sizeof(idxrec_t))
return(0); return(0);
if(!usernumber) if(!usernumber)
return(l/sizeof(idxrec_t)); /* Total system e-mail */ return(l/sizeof(idxrec_t)); /* Total system e-mail */
......
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
#include "genwrap.h" /* stricmp */ #include "genwrap.h" /* stricmp */
#include "dirwrap.h" /* fexist */ #include "dirwrap.h" /* fexist */
#include "conwrap.h" /* getch */
#include "filewrap.h" #include "filewrap.h"
#include "smblib.h" #include "smblib.h"
#include "crc32.h" #include "crc32.h"
......
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