r2489 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Fri Feb 15 14:35:22 CET 2008


Author: phk
Date: 2008-02-15 14:35:22 +0100 (Fri, 15 Feb 2008)
New Revision: 2489

Modified:
   trunk/varnish-cache/bin/varnishd/storage_file.c
Log:
Make this cast less suspect to Flexelint


Modified: trunk/varnish-cache/bin/varnishd/storage_file.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/storage_file.c	2008-02-15 13:32:41 UTC (rev 2488)
+++ trunk/varnish-cache/bin/varnishd/storage_file.c	2008-02-15 13:35:22 UTC (rev 2489)
@@ -609,7 +609,7 @@
 	    (uintmax_t)sum, sc->filesize);
 
 	/* XXX */
-	if (sum < MINPAGES * (uintmax_t)getpagesize())
+	if (sum < MINPAGES * (off_t)getpagesize())
 		exit (2);
 	MTX_INIT(&sc->mtx);
 




More information about the varnish-commit mailing list