From: phk Date: Fri, 15 Feb 2008 13:04:36 +0000 (+0000) Subject: Flexelint does not react to the assert, so tell it what we know. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e0b52647ac1f1e8b8ba6e1cd4c7e40e7bca8ce1;p=varnish 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 --- 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 */