From: phk Date: Mon, 10 Jul 2006 09:28:26 +0000 (+0000) Subject: Silence some warnings X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dfb22d0807102e6dbd2f1dda047f7abd3dd656b;p=varnish Silence some warnings git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@395 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishlog/varnishlog.c b/varnish-cache/bin/varnishlog/varnishlog.c index 43aa74c6..b46c1931 100644 --- a/varnish-cache/bin/varnishlog/varnishlog.c +++ b/varnish-cache/bin/varnishlog/varnishlog.c @@ -52,7 +52,7 @@ static int hc[65536]; static int xrf[65536]; static void -clean_order() +clean_order(void) { unsigned u; @@ -256,14 +256,14 @@ main(int argc, char **argv) rfile = fopen(r_opt, "r"); if (rfile == NULL) perror(r_opt); - u = 0; } if (w_opt != NULL) { wfile = fopen(w_opt, "w"); if (wfile == NULL) perror(w_opt); - u = 0; } + u = 0; + v = 0; q = NULL; if (r_opt == NULL) { @@ -329,4 +329,5 @@ main(int argc, char **argv) } if (o_flag) clean_order(); + return (0); }