]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix: (long should be *plenty*!)
authorJim Jagielski <jim@apache.org>
Tue, 2 Jul 2013 12:47:11 +0000 (12:47 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 2 Jul 2013 12:47:11 +0000 (12:47 +0000)
 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

server/apreq_module_cgi.c

index 948e88be5274125f603eafd58ef179d4aac8e3dd..1c8fbfa88cf4eb02073f34a75ac32a8c5abdf916 100644 (file)
@@ -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':