r1883 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Aug 20 12:36:17 CEST 2007


Author: phk
Date: 2007-08-20 12:36:16 +0200 (Mon, 20 Aug 2007)
New Revision: 1883

Modified:
   trunk/varnish-cache/bin/varnishd/cache.h
Log:
Make the new FlexeLint 8.00w happy again.

It's a fine point of C-linguistics, but I have to admit that in
certain universes it would have a point.  Not this one though.




Modified: trunk/varnish-cache/bin/varnishd/cache.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache.h	2007-08-20 10:21:07 UTC (rev 1882)
+++ trunk/varnish-cache/bin/varnishd/cache.h	2007-08-20 10:36:16 UTC (rev 1883)
@@ -105,6 +105,12 @@
 	char			*e;
 };
 
+enum httpwhence {
+	HTTP_Rx,
+	HTTP_Tx,
+	HTTP_Obj
+};
+
 struct http {
 	unsigned		magic;
 #define HTTP_MAGIC		0x6428b5c9
@@ -114,11 +120,7 @@
 	char			*pl_s, *pl_e;	/* Pipelined bytes */
 
 	unsigned char		conds;		/* If-* headers present */
-	enum httpwhence {
-		HTTP_Rx,
-		HTTP_Tx,
-		HTTP_Obj
-	}			logtag;
+	enum httpwhence 	logtag;
 
 	struct http_hdr		hd[HTTP_HDR_MAX];
 	unsigned char		hdf[HTTP_HDR_MAX];




More information about the varnish-commit mailing list