]> jfr.im git - irc/quakenet/newserv.git/commitdiff
fix last 2 warnings
authorPaul <redacted>
Sun, 24 Aug 2008 20:45:52 +0000 (21:45 +0100)
committerPaul <redacted>
Sun, 24 Aug 2008 20:45:52 +0000 (21:45 +0100)
core/nsmalloc.c
proxyscan/proxyscan.c

index df3b10e8871e24e48491f59482be74295f070a60..901987cc67fa6f5eae6b276496177711d624038d 100644 (file)
@@ -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);
   }
 }
index 210686486377a1e5c0d9fb4249ba35fdbbecfe63..058e5d5f9b6cf40e5999f4806738a06cc9e32454 100644 (file)
@@ -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);