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

Fixed printf formats to make gcc -Wall happy.

parent bdf29915
......@@ -823,7 +823,7 @@ char* sbbs_t::atcode(char* sp, char* str)
else if(!strcmp(sp,"FTODAY"))
sprintf(str,"%lu",stats.ftoday);
else if(!strcmp(sp,"NUSERS"))
sprintf(str,"%lu",stats.nusers);
sprintf(str,"%u",stats.nusers);
return(str);
}
......
......@@ -283,7 +283,7 @@ void sbbs_t::errormsg(int line, char *source, char action, char *object
actstr="UNKNOWN";
break;
}
sprintf(str,"Node %d !ERROR %d in %s line %d %s \"%s\" access=%d"
sprintf(str,"Node %d !ERROR %d in %s line %d %s \"%s\" access=%ld"
,cfg.node_num, errno, src, line, actstr, object, access);
if(online==ON_LOCAL)
eprintf("%s",str);
......
......@@ -766,7 +766,7 @@ void sbbs_t::maindflts(user_t* user)
if(user->rows)
ultoa(user->rows,tmp,10);
else
sprintf(tmp,"Auto Detect (%d)",rows);
sprintf(tmp,"Auto Detect (%ld)",rows);
bprintf(text[UserDefaultsRows],tmp);
if(cfg.total_shells>1)
bprintf(text[UserDefaultsCommandSet]
......
......@@ -334,7 +334,7 @@ void sbbs_t::xtrndat(char *name, char *dropdir, uchar type, ulong tleft
#ifndef __FLAT__
,sys_status&SS_DCDHIGH ? &fakeriobp : &riobp-1 /* Modem status register */
#else
,0
,0L
#endif
);
write(file,str,strlen(str));
......@@ -1081,7 +1081,7 @@ void sbbs_t::xtrndat(char *name, char *dropdir, uchar type, ulong tleft
,cfg.node_num /* Node number */
,15 /* Downloads allowed per day */
,0 /* Downloads already this day */
,100000 /* Download bytes allowed/day */
,100000L /* Download bytes allowed/day */
,0 /* Downloaded bytes already today */
,useron.ulb/1024L /* Kbytes uploaded */
,useron.dlb/1024L /* Kbytes downloaded */
......@@ -1176,7 +1176,7 @@ void sbbs_t::xtrndat(char *name, char *dropdir, uchar type, ulong tleft
return;
}
sprintf(str,"%d\n%d\n38400\n%s%c\n%d\n%s\n%s\n%d\n%d\n"
sprintf(str,"%d\n%d\n38400\n%s%c\n%d\n%s\n%s\n%d\n%ld\n"
"%d\n%d\n"
,misc&IO_INTS ? 0 /* Local */ : 2 /* Telnet */
#if defined(__unix__)
......
......@@ -221,7 +221,7 @@ int SMBCALL smb_open_da(smb_t* smb)
start=time(NULL);
else
if(time(NULL)-start>=(time_t)smb->retry_time) {
sprintf(smb->last_error,"timeout opening %s (retry_time=%d)"
sprintf(smb->last_error,"timeout opening %s (retry_time=%ld)"
,str,smb->retry_time);
return(-2);
}
......@@ -266,7 +266,7 @@ int SMBCALL smb_open_ha(smb_t* smb)
start=time(NULL);
else
if(time(NULL)-start>=(time_t)smb->retry_time) {
sprintf(smb->last_error,"timeout opening %s (retry_time=%d)"
sprintf(smb->last_error,"timeout opening %s (retry_time=%ld)"
,str,smb->retry_time);
return(-2);
}
......@@ -360,7 +360,7 @@ int SMBCALL smb_trunchdr(smb_t* smb)
start=time(NULL);
else
if(time(NULL)-start>=(time_t)smb->retry_time) { /* Time-out */
sprintf(smb->last_error,"timeout changing header file size (retry_time=%d)"
sprintf(smb->last_error,"timeout changing header file size (retry_time=%ld)"
,smb->retry_time);
return(-2);
}
......@@ -923,7 +923,7 @@ int SMBCALL smb_addcrc(smb_t* smb, ulong crc)
start=time(NULL);
else
if(time(NULL)-start>=(time_t)smb->retry_time) {
sprintf(smb->last_error,"timeout opening %s (retry_time=%d)"
sprintf(smb->last_error,"timeout opening %s (retry_time=%ld)"
,str,smb->retry_time);
return(-2);
}
......
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