Commit 77542afe authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

correctly round INT32_MAX down to page boundary


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1027 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 8deb8953
......@@ -187,6 +187,7 @@ smf_calcsize(struct smf_sc *sc, const char *size, int newfile)
" Specifiy explicit size to override.\n"
);
l = INT32_MAX;
l -= (l % bs);
}
printf("file %s size %ju bytes (%ju fs-blocks, %ju pages)\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment