Module Name: src
Committed By: mrg
Date: Sat May 23 08:26:26 UTC 2009
Modified Files:
src/libexec/httpd: bozohttpd.c
Log Message:
fix a new -Wsign-compare bug.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/libexec/httpd/bozohttpd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/httpd/bozohttpd.c
diff -u src/libexec/httpd/bozohttpd.c:1.14 src/libexec/httpd/bozohttpd.c:1.15
--- src/libexec/httpd/bozohttpd.c:1.14 Sat May 23 02:26:03 2009
+++ src/libexec/httpd/bozohttpd.c Sat May 23 08:26:26 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: bozohttpd.c,v 1.14 2009/05/23 02:26:03 mrg Exp $ */
+/* $NetBSD: bozohttpd.c,v 1.15 2009/05/23 08:26:26 mrg Exp $ */
/* $eterna: bozohttpd.c,v 1.159 2009/05/23 02:14:30 mrg Exp $ */
@@ -1111,7 +1111,7 @@
/* This should take care of the first unaligned chunk */
if ((cur_byte_pos & (page_size - 1)) != 0)
sz = cur_byte_pos & ~page_size;
- if (mmapsz < szleft)
+ if ((off_t)mmapsz < szleft)
sz = mmapsz;
else
sz = szleft;