]> jfr.im git - irc/quakenet/newserv.git/blobdiff - chanstats/chanstats.c
should always be %jd and cast to intmax_t to stop warning on 32bit (gcc 4.2.3) -warni...
[irc/quakenet/newserv.git] / chanstats / chanstats.c
index 130191358c5944a5bb357cc93ca67d221ac4a781..e69c01390a4e98a1af04b402c213ae75cbe1f64b 100644 (file)
@@ -64,7 +64,7 @@ void _init() {
     /* Work out when to take the next sample */
     now=getnettime();
     if (now < chanstats_lastsample) {
-      Error("chanstats",ERR_WARNING,"Last sample time in future (%zu > %zu)",chanstats_lastsample,now);
+      Error("chanstats",ERR_WARNING,"Last sample time in future (%jd > %jd)",(intmax_t)chanstats_lastsample,(intmax_t)now);
       when=now;
     } else if (now<(chanstats_lastsample+SAMPLEINTERVAL)) {
       lastday=chanstats_lastsample/(24*3600);