Mailing List Archive

r2490 - trunk/varnish-cache/bin/varnishd
Author: phk
Date: 2008-02-15 15:22:23 +0100 (Fri, 15 Feb 2008)
New Revision: 2490

Modified:
trunk/varnish-cache/bin/varnishd/cache_dir_random.c
trunk/varnish-cache/bin/varnishd/flint.lnt
Log:
Flexelint pleasing


Modified: trunk/varnish-cache/bin/varnishd/cache_dir_random.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_dir_random.c 2008-02-15 13:35:22 UTC (rev 2489)
+++ trunk/varnish-cache/bin/varnishd/cache_dir_random.c 2008-02-15 14:22:23 UTC (rev 2490)
@@ -75,7 +75,7 @@
for (vh = vs->hosts; ; vh++)
if (r < vh->weight)
return (vh->backend);
- assert(0 != __LINE__);
+ assert(0 == __LINE__);
return (NULL);
}


Modified: trunk/varnish-cache/bin/varnishd/flint.lnt
===================================================================
--- trunk/varnish-cache/bin/varnishd/flint.lnt 2008-02-15 13:35:22 UTC (rev 2489)
+++ trunk/varnish-cache/bin/varnishd/flint.lnt 2008-02-15 14:22:23 UTC (rev 2490)
@@ -1,4 +1,4 @@
--passes=8
+-passes=3

+libh mgt_event.h
+libh ../../config.h
@@ -53,6 +53,8 @@
-emacro(506, isnan) // constant value boolean
-emacro(747, isnan) // significant coersion
-emacro(506, assert) // constant value boolean
+-emacro(827, assert) // loop not reachable
+-emacro(774, assert) // booelan always true
-emacro(774, HTTPH) // always false

// cache.h