]> err.no Git - varnish/commitdiff
Make the new FlexeLint 8.00w happy again.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 20 Aug 2007 10:36:16 +0000 (10:36 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 20 Aug 2007 10:36:16 +0000 (10:36 +0000)
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.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1883 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache.h

index 8c5e72b8261dddf15df38ec1d0d2373d9a6b7d84..7cad55d51b43445029cb251d41a1a2df6a204033 100644 (file)
@@ -105,6 +105,12 @@ struct http_hdr {
        char                    *e;
 };
 
+enum httpwhence {
+       HTTP_Rx,
+       HTTP_Tx,
+       HTTP_Obj
+};
+
 struct http {
        unsigned                magic;
 #define HTTP_MAGIC             0x6428b5c9
@@ -114,11 +120,7 @@ struct http {
        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];