]> err.no Git - varnish/commitdiff
Fix a printf type complaint.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 7 Aug 2008 09:56:42 +0000 (09:56 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 7 Aug 2008 09:56:42 +0000 (09:56 +0000)
Also fix style.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3071 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishstat/varnishstat.c

index 58cd5d14703af3c0f9c7124074d6b1ee4c387b99..4d5fb5b2c463cee0d53348fa72860512cdacc806 100644 (file)
@@ -212,10 +212,11 @@ do_once(struct varnish_stats *VSL_stats, const char* fields)
        up = tv.tv_sec - VSL_stats->start_time;
 
        do {
-         if (fields != NULL && ! show_field("uptime", fields ))
-           break;
-         printf("%-16s %12ju %12s %s\n", "uptime",
-                tv.tv_sec - VSL_stats->start_time, ".  ", "Child uptime");
+               if (fields != NULL && ! show_field("uptime", fields ))
+                       break;
+               printf("%-16s %12ju %12s %s\n", "uptime",
+                   (uintmax_t)(tv.tv_sec - VSL_stats->start_time),
+                   ".  ", "Child uptime");
        } while (0);
 
 #define MAC_STAT(n, t, f, d) \