From 5e0b52647ac1f1e8b8ba6e1cd4c7e40e7bca8ce1 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 15 Feb 2008 13:04:36 +0000 Subject: [PATCH] Flexelint does not react to the assert, so tell it what we know. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2484 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_dir_random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_dir_random.c b/varnish-cache/bin/varnishd/cache_dir_random.c index 76c7d43a..1f380563 100644 --- a/varnish-cache/bin/varnishd/cache_dir_random.c +++ b/varnish-cache/bin/varnishd/cache_dir_random.c @@ -131,7 +131,7 @@ VRT_init_dir_random(struct cli *cli, struct director **bp, const struct vrt_dir_ assert(s > 0.0); for (te = t->members; te->host != NULL; te++, i++) { /* First normalize the specified weight in FP */ - b = te->weight / s; + b = te->weight / s; /*lint !e795 not zero division */ /* Then accumulate to eliminate rounding errors */ a += b; /* Convert to unsigned in random() range */ -- 2.39.5