]> err.no Git - varnish/commitdiff
Move the enum out of the struct to cater for marginal pedantism on
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 16 Jan 2008 11:27:34 +0000 (11:27 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 16 Jan 2008 11:27:34 +0000 (11:27 +0000)
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

index 8d7af81b78e28de2737535252f1460ead07d4bf3..0b45e391f066668948aba7c08f262b027b912bee 100644 (file)
@@ -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;