From 4dd225339d76fcb094defe963558a33b98a49f2a Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 16 Jan 2008 11:27:34 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; -- 2.39.5