]> err.no Git - varnish/commitdiff
Make this cast less suspect to Flexelint
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Feb 2008 13:35:22 +0000 (13:35 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Feb 2008 13:35:22 +0000 (13:35 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2489 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/storage_file.c

index ce772374413878381ec856bd0a8dfcd1f1fb82e4..8c66313cee34c1c9d1652634cfd5adb716643a65 100644 (file)
@@ -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);