Commits (2)
......@@ -532,15 +532,15 @@
"\1n\1cE-mails : \1h%-5u \1n\1cTo sysop : "\ 431 UserEmails
"\1h%-5u \1n\1cWaiting : "\
"\1h%-5u \1n\1cToday : \1h%u\r\n"
"\1n\1cNetMail : \1h%s\r\n" 432 UserNetMail
"\1n\1cUploads : \1h%13.13s \1n\1cbytes in "\ 433 UserUploads
"\1n\1cNetMail : \1h%s\r\n" 432 UserNetMail
"\1n\1cUploads : \1h%9.9s \1n\1cbytes in "\ 433 UserUploads
"\1h%u \1n\1cfiles\r\n"
"\1n\1cDownloads : \1h%13.13s \1n\1cbytes in "\ 434 UserDownloads
"\1n\1cDownloads : \1h%9.9s \1n\1cbytes in "\ 434 UserDownloads
"\1h%u \1n\1cfiles %s\r\n"
"- Leech: \1r\1h\1i%u\1n" 435 UserLeech
"\1n\1cCredits : \1h%13.13s \1n\1cfree: \1h%s "\ 436 UserCredits
"\1n\1cCredits : \1h%9.9s \1n\1cfree: \1h%s "\ 436 UserCredits
"\1n\1c(\1h%s \1n\1cper day)\r\n"
"\1n\1cMinutes : \1h%13.13s\r\n" 437 UserMinutes
"\1n\1cMinutes : \1h%9.9s\r\n" 437 UserMinutes
"\r\n\1n\1cSec Level : \1h%d\r\n" 438 UeditSecLevel
"\1n\1cFlags #1 : \1h%-26s \1n\1cFlags #3 : \1h%s\r\n"\ 439 UeditFlags
"\1n\1cFlags #2 : \1h%-26s \1n\1cFlags #4 : \1h%s\r\n"
......
......@@ -1132,7 +1132,7 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode, bool
return sectostr(useron.textra, str) + 3;
if(strcmp(sp, "MBANKED") == 0) {
safe_snprintf(str, maxlen, "%lu", useron.min);
safe_snprintf(str, maxlen, "%" PRIu32, useron.min);
return str;
}
......@@ -1262,7 +1262,7 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode, bool
}
if(!strcmp(sp,"KBLEFT")) {
safe_snprintf(str,maxlen,"%" PRIu64,(useron.cdt+useron.freecdt)/1024ULL);
safe_snprintf(str,maxlen,"%" PRIu64,(useron.cdt+useron.freecdt)/1024UL);
return(str);
}
......@@ -1716,11 +1716,11 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode, bool
else if(!strcmp(sp,"ULS"))
safe_snprintf(str,maxlen,"%lu", (ulong)stats.uls);
else if(!strcmp(sp,"ULB"))
safe_snprintf(str,maxlen,"%" PRIu64, stats.ulb);
safe_snprintf(str,maxlen,"%" PRIu32, stats.ulb);
else if(!strcmp(sp,"DLS"))
safe_snprintf(str,maxlen,"%lu", (ulong)stats.dls);
else if(!strcmp(sp,"DLB"))
safe_snprintf(str,maxlen,"%" PRIu64, stats.dlb);
safe_snprintf(str,maxlen,"%" PRIu32, stats.dlb);
else if(!strcmp(sp,"PTODAY"))
safe_snprintf(str,maxlen,"%lu", (ulong)stats.ptoday);
else if(!strcmp(sp,"ETODAY"))
......
......@@ -413,7 +413,7 @@ void sbbs_t::download_msg_attachments(smb_t* smb, smbmsg_t* msg, bool del)
if(length<1)
bprintf(text[FileDoesNotExist], tp);
else if(!(useron.exempt&FLAG('T')) && cur_cps && !SYSOP
&& length/cur_cps>(time_t)timeleft)
&& (ulong)(length/cur_cps)>timeleft)
bputs(text[NotEnoughTimeToDl]);
else {
char tmp[512];
......
......@@ -1280,7 +1280,7 @@ int edit_security(scfg_t *cfg, user_t *user)
sprintf(opt[i++],"Restrictions %s",ltoaf(user->rest,str));
sprintf(opt[i++],"Credits %" PRIu64,user->cdt);
sprintf(opt[i++],"Free Credits %" PRIu64,user->freecdt);
sprintf(opt[i++],"Minutes %lu",user->min);
sprintf(opt[i++],"Minutes %" PRIu32,user->min);
opt[i][0]=0;
switch(uifc.list(WIN_MID|WIN_ACT,0,0,0,&j,0,"Security Settings",opt)) {
case -1:
......@@ -1389,7 +1389,7 @@ int edit_security(scfg_t *cfg, user_t *user)
case 10:
/* Minutes */
GETUSERDAT(cfg,user);
sprintf(str,"%lu",user->min);
sprintf(str,"%" PRIu32,user->min);
uifc.input(WIN_MID|WIN_ACT|WIN_SAV,0,0,"Minutes",str,10,K_EDIT|K_NUMBER);
if(uifc.changes) {
user->min=strtoul(str,NULL,10);
......
......@@ -440,7 +440,7 @@ void sbbs_t::xtrndat(const char *name, const char *dropdir, uchar type, ulong tl
fwrite(str,strlen(str),1,fp);
localtime_r(&ns_time,&tm);
safe_snprintf(str, sizeof(str), "%c\n%c\n%u\n%lu\n%02d/%02d/%02d\n"
safe_snprintf(str, sizeof(str), "%c\n%c\n%u\n%" PRIu32 "\n%02d/%02d/%02d\n"
,(term & (NO_EXASCII|ANSI|COLOR)) == ANSI
? 'Y':'N' /* 39: ANSI supported but NG mode */
,'Y' /* 40: Use record locking */
......