From: phk Date: Wed, 16 Jan 2008 11:27:34 +0000 (+0000) Subject: Move the enum out of the struct to cater for marginal pedantism on X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dd225339d76fcb094defe963558a33b98a49f2a;p=varnish Move the enum out of the struct to cater for marginal pedantism on the part of FlexeLint. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2347 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache.h b/varnish-cache/bin/varnishd/cache.h index 8d7af81b..0b45e391 100644 --- a/varnish-cache/bin/varnishd/cache.h +++ b/varnish-cache/bin/varnishd/cache.h @@ -221,6 +221,11 @@ struct storage { /* -------------------------------------------------------------------*/ +enum e_objtimer { + TIMER_TTL, + TIMER_PREFETCH +}; + struct object { unsigned magic; #define OBJECT_MAGIC 0x32851d42 @@ -233,10 +238,7 @@ struct object { unsigned char *vary; double timer_when; - enum { - TIMER_TTL, - TIMER_PREFETCH - } timer_what; + enum e_objtimer timer_what; unsigned timer_idx; unsigned ban_seq;