From: phk Date: Fri, 15 Feb 2008 13:35:22 +0000 (+0000) Subject: Make this cast less suspect to Flexelint X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2673695301758d72483c04deb73a7caecc492dd4;p=varnish Make this cast less suspect to Flexelint git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2489 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/storage_file.c b/varnish-cache/bin/varnishd/storage_file.c index ce772374..8c66313c 100644 --- a/varnish-cache/bin/varnishd/storage_file.c +++ b/varnish-cache/bin/varnishd/storage_file.c @@ -609,7 +609,7 @@ smf_open(const struct stevedore *st) (uintmax_t)sum, sc->filesize); /* XXX */ - if (sum < MINPAGES * (uintmax_t)getpagesize()) + if (sum < MINPAGES * (off_t)getpagesize()) exit (2); MTX_INIT(&sc->mtx);