r2347 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Wed Jan 16 12:27:35 CET 2008
Author: phk
Date: 2008-01-16 12:27:34 +0100 (Wed, 16 Jan 2008)
New Revision: 2347
Modified:
trunk/varnish-cache/bin/varnishd/cache.h
Log:
Move the enum out of the struct to cater for marginal pedantism on
the part of FlexeLint.
Modified: trunk/varnish-cache/bin/varnishd/cache.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache.h 2008-01-16 10:15:27 UTC (rev 2346)
+++ trunk/varnish-cache/bin/varnishd/cache.h 2008-01-16 11:27:34 UTC (rev 2347)
@@ -221,6 +221,11 @@
/* -------------------------------------------------------------------*/
+enum e_objtimer {
+ TIMER_TTL,
+ TIMER_PREFETCH
+};
+
struct object {
unsigned magic;
#define OBJECT_MAGIC 0x32851d42
@@ -233,10 +238,7 @@
unsigned char *vary;
double timer_when;
- enum {
- TIMER_TTL,
- TIMER_PREFETCH
- } timer_what;
+ enum e_objtimer timer_what;
unsigned timer_idx;
unsigned ban_seq;
More information about the varnish-commit
mailing list