From: Paul Date: Sun, 24 Aug 2008 20:45:52 +0000 (+0100) Subject: fix last 2 warnings X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/a05832ea10a61d2db9acbb5a8914a34b72e6f841?hp=58a4da4a12df068aee955782089c632331d4e79f fix last 2 warnings --- diff --git a/core/nsmalloc.c b/core/nsmalloc.c index df3b10e8..901987cc 100644 --- a/core/nsmalloc.c +++ b/core/nsmalloc.c @@ -118,7 +118,7 @@ void nscheckfreeall(unsigned int poolid) { return; if (nsmpools[poolid].first.next) { - Error("core",ERR_INFO,"nsmalloc: Blocks still allocated in pool #%d (%s): %lub, %lu items",poolid,nsmpoolnames[poolid]?nsmpoolnames[poolid]:"??",nsmpools[poolid].size,nsmpools[poolid].count); + Error("core",ERR_INFO,"nsmalloc: Blocks still allocated in pool #%d (%s): %zub, %lu items",poolid,nsmpoolnames[poolid]?nsmpoolnames[poolid]:"??",nsmpools[poolid].size,nsmpools[poolid].count); nsfreeall(poolid); } } diff --git a/proxyscan/proxyscan.c b/proxyscan/proxyscan.c index 21068648..058e5d5f 100644 --- a/proxyscan/proxyscan.c +++ b/proxyscan/proxyscan.c @@ -842,7 +842,7 @@ void proxyscandostatus(nick *np) { sendnoticetouser(proxyscannick,np,"Total scans completed: %d",scansdone); sendnoticetouser(proxyscannick,np,"Total hosts glined: %d",glinedhosts); - sendnoticetouser(proxyscannick,np,"pendingscan structures: %lu x %lu bytes = %lu bytes total",countpendingscan, + sendnoticetouser(proxyscannick,np,"pendingscan structures: %lu x %u bytes = %lu bytes total",countpendingscan, sizeof(pendingscan), (countpendingscan * sizeof(pendingscan))); sendnoticetouser(proxyscannick,np,"Currently active scans: %d/%d",activescans,maxscans);