From: phk Date: Mon, 20 Aug 2007 10:36:16 +0000 (+0000) Subject: Make the new FlexeLint 8.00w happy again. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e2f87b2c5ccf87913ceb61f5194390aa4af0604;p=varnish 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. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1883 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache.h b/varnish-cache/bin/varnishd/cache.h index 8c5e72b8..7cad55d5 100644 --- a/varnish-cache/bin/varnishd/cache.h +++ b/varnish-cache/bin/varnishd/cache.h @@ -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];