From: Jim Jagielski Date: Tue, 2 Jul 2013 12:47:11 +0000 (+0000) Subject: Fix: (long should be *plenty*!) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c013b9347ce7df16e06e8a83ca58f9ab91bdfef5;p=thirdparty%2Fapache%2Fhttpd.git Fix: (long should be *plenty*!) apreq_module_cgi.c:103:16: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare] while (--p >= 0) { ~~~ ^ ~ 1 warning generated. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1498909 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/apreq_module_cgi.c b/server/apreq_module_cgi.c index 948e88be527..1c8fbfa88cf 100644 --- a/server/apreq_module_cgi.c +++ b/server/apreq_module_cgi.c @@ -99,7 +99,7 @@ static const TRANS priorities[] = { }; static char* chomp(char* str) { - apr_size_t p = strlen(str); + long p = (long)strlen(str); while (--p >= 0) { switch ((char)(str[p])) { case '\015':