Mailing List Archive

r2489 - trunk/varnish-cache/bin/varnishd
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);