From 2ea05ba2d7184ac35a143f3242f7a453b25e18da Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 7 Aug 2008 09:56:42 +0000 Subject: [PATCH] Fix a printf type complaint. 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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/varnish-cache/bin/varnishstat/varnishstat.c b/varnish-cache/bin/varnishstat/varnishstat.c index 58cd5d14..4d5fb5b2 100644 --- a/varnish-cache/bin/varnishstat/varnishstat.c +++ b/varnish-cache/bin/varnishstat/varnishstat.c @@ -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) \ -- 2.39.5