r2098 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Oct 16 11:00:23 CEST 2007


Author: phk
Date: 2007-10-16 11:00:22 +0200 (Tue, 16 Oct 2007)
New Revision: 2098

Modified:
   trunk/varnish-cache/bin/varnishd/cache_pool.c
Log:
Flexelint polish


Modified: trunk/varnish-cache/bin/varnishd/cache_pool.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pool.c	2007-10-10 13:23:15 UTC (rev 2097)
+++ trunk/varnish-cache/bin/varnishd/cache_pool.c	2007-10-16 09:00:22 UTC (rev 2098)
@@ -200,11 +200,12 @@
 static void *
 wrk_thread(void *priv)
 {
-	struct worker w[1];
+	struct worker *w, ww;
 	struct wq *qp;
 	char c;
 	unsigned char wlog[8192]; 	/* XXX: size */
 
+	w = &ww;
 	qp = priv;
 	memset(w, 0, sizeof *w);
 	w->magic = WORKER_MAGIC;




More information about the varnish-commit mailing list