]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Fix more printf style warnings.
authorChris Porter <redacted>
Sun, 24 Aug 2008 22:11:54 +0000 (23:11 +0100)
committerChris Porter <redacted>
Sun, 24 Aug 2008 22:11:54 +0000 (23:11 +0100)
patriciasearch/ps-users.c
proxyscan/proxyscan.c

index 0cefa25ed521d712bb77bae9e457c01cd5914098..f75a252e2e3d0f8a88ad9ef926551067fc0adaed 100644 (file)
@@ -25,7 +25,7 @@ struct searchNode *ps_users_parse(searchCtx *ctx, int argc, char **argv) {
 void *ps_users_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput) {
   patricia_node_t *pn = (patricia_node_t *)theinput;
 
-  return (void *)(pn->usercount);
+  return (void *)(long)(pn->usercount);
 }
 
 void ps_users_free(searchCtx *ctx, struct searchNode *thenode) {
index 058e5d5f9b6cf40e5999f4806738a06cc9e32454..210686486377a1e5c0d9fb4249ba35fdbbecfe63 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 %u bytes = %lu bytes total",countpendingscan,
+  sendnoticetouser(proxyscannick,np,"pendingscan structures: %lu x %lu bytes = %lu bytes total",countpendingscan,
        sizeof(pendingscan), (countpendingscan * sizeof(pendingscan)));
 
   sendnoticetouser(proxyscannick,np,"Currently active scans: %d/%d",activescans,maxscans);