r733 - trunk/varnish-cache/bin/varnishd
des at projects.linpro.no
des at projects.linpro.no
Mon Aug 7 18:20:04 CEST 2006
Author: des
Date: 2006-08-07 18:20:04 +0200 (Mon, 07 Aug 2006)
New Revision: 733
Modified:
trunk/varnish-cache/bin/varnishd/storage_file.c
Log:
Spell SIZE_MAX correctly.
Modified: trunk/varnish-cache/bin/varnishd/storage_file.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/storage_file.c 2006-08-07 16:17:43 UTC (rev 732)
+++ trunk/varnish-cache/bin/varnishd/storage_file.c 2006-08-07 16:20:04 UTC (rev 733)
@@ -453,7 +453,7 @@
if (*fail < (uintmax_t)sc->pagesize * MINPAGES)
return;
- if (sz > 0 && sz < *fail && sz < SIZE_T_MAX) {
+ if (sz > 0 && sz < *fail && sz < SIZE_MAX) {
p = mmap(NULL, sz, PROT_READ|PROT_WRITE,
MAP_NOCORE | MAP_NOSYNC | MAP_SHARED, sc->fd, off);
if (p != MAP_FAILED) {
@@ -467,8 +467,8 @@
*fail = sz;
h = sz / 2;
- if (h > SIZE_T_MAX)
- h = SIZE_T_MAX;
+ if (h > SIZE_MAX)
+ h = SIZE_MAX;
h -= (h % sc->pagesize);
smf_open_chunk(sc, h, off, fail, sum);
More information about the varnish-commit
mailing list