From 0e2f87b2c5ccf87913ceb61f5194390aa4af0604 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 20 Aug 2007 10:36:16 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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]; -- 2.39.5