r395 - trunk/varnish-cache/bin/varnishlog
phk at projects.linpro.no
phk at projects.linpro.no
Mon Jul 10 11:28:26 CEST 2006
Author: phk
Date: 2006-07-10 11:28:26 +0200 (Mon, 10 Jul 2006)
New Revision: 395
Modified:
trunk/varnish-cache/bin/varnishlog/varnishlog.c
Log:
Silence some warnings
Modified: trunk/varnish-cache/bin/varnishlog/varnishlog.c
===================================================================
--- trunk/varnish-cache/bin/varnishlog/varnishlog.c 2006-07-10 09:07:29 UTC (rev 394)
+++ trunk/varnish-cache/bin/varnishlog/varnishlog.c 2006-07-10 09:28:26 UTC (rev 395)
@@ -52,7 +52,7 @@
static int xrf[65536];
static void
-clean_order()
+clean_order(void)
{
unsigned u;
@@ -256,14 +256,14 @@
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 @@
}
if (o_flag)
clean_order();
+ return (0);
}
More information about the varnish-commit
mailing list