]> err.no Git - varnish/commitdiff
Silence some warnings
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 10 Jul 2006 09:28:26 +0000 (09:28 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 10 Jul 2006 09:28:26 +0000 (09:28 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@395 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishlog/varnishlog.c

index 43aa74c6337adeab6ec57b340e0d8340a0887032..b46c193114ba10ba850a534d36bd62c489287426 100644 (file)
@@ -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);
 }