From 8cd9ceb86a825036a7e8d6034a66bead496fd4bf Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 15 Feb 2008 14:22:23 +0000 Subject: [PATCH] Flexelint pleasing git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2490 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_dir_random.c | 2 +- varnish-cache/bin/varnishd/flint.lnt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache_dir_random.c b/varnish-cache/bin/varnishd/cache_dir_random.c index 1f380563..d7a31b36 100644 --- a/varnish-cache/bin/varnishd/cache_dir_random.c +++ b/varnish-cache/bin/varnishd/cache_dir_random.c @@ -75,7 +75,7 @@ vdi_random_choose(struct sess *sp) for (vh = vs->hosts; ; vh++) if (r < vh->weight) return (vh->backend); - assert(0 != __LINE__); + assert(0 == __LINE__); return (NULL); } diff --git a/varnish-cache/bin/varnishd/flint.lnt b/varnish-cache/bin/varnishd/flint.lnt index bee88e35..3157bf22 100644 --- a/varnish-cache/bin/varnishd/flint.lnt +++ b/varnish-cache/bin/varnishd/flint.lnt @@ -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 -- 2.39.5