[master] 11aaada Add (...) to silence flexelint

Poul-Henning Kamp phk at FreeBSD.org
Mon Jun 29 10:30:13 CEST 2015


commit 11aaada25ad9e198ed89086b455b0102e392ca67
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Jun 29 08:21:30 2015 +0000

    Add (...) to silence flexelint

diff --git a/bin/varnishd/cache/cache_shmlog.c b/bin/varnishd/cache/cache_shmlog.c
index 3566d53..06b0f49 100644
--- a/bin/varnishd/cache/cache_shmlog.c
+++ b/bin/varnishd/cache/cache_shmlog.c
@@ -456,8 +456,8 @@ VSM_Init(void)
 
 	vsl_head = VSM_Alloc(cache_param->vsl_space, VSL_CLASS, "", "");
 	AN(vsl_head);
-	vsl_segsize = (cache_param->vsl_space - sizeof *vsl_head) /
-	    sizeof *vsl_end / VSL_SEGMENTS;
+	vsl_segsize = ((cache_param->vsl_space - sizeof *vsl_head) /
+	    sizeof *vsl_end) / VSL_SEGMENTS;
 	vsl_end = vsl_head->log + vsl_segsize * VSL_SEGMENTS;
 	/* Make segment_n always overflow on first log wrap to make any
 	   problems with regard to readers on that event visible */



More information about the varnish-commit mailing list