]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix all of those annoying --i -> - ap_context_t problems caused by a
authorRyan Bloom <rbb@apache.org>
Tue, 31 Aug 1999 21:54:52 +0000 (21:54 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 31 Aug 1999 21:54:52 +0000 (21:54 +0000)
search/replace gone wrong.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83859 13f79535-47bb-0310-9956-ffa450edef68

modules/metadata/mod_mime_magic.c
modules/proxy/proxy_util.c

index 8adf72af018967748ae6d3729f43bb0c97442eea..dd2b2ac446256f7193ed3e4fee6fe686fb52f76a 100644 (file)
@@ -2235,7 +2235,7 @@ static int is_tar(unsigned char *buf, int nbytes)
 
     sum = 0;
     p = header->charptr;
-    for (i = sizeof(union record); - ap_context_t  >= 0;) {
+    for (i = sizeof(union record); --i >= 0;) {
        /*
         * We can't use unsigned char here because of old compilers, e.g. V7.
         */
@@ -2243,7 +2243,7 @@ static int is_tar(unsigned char *buf, int nbytes)
     }
 
     /* Adjust checksum to count the "chksum" field as blanks. */
-    for (i = sizeof(header->header.chksum); - ap_context_t  >= 0;)
+    for (i = sizeof(header->header.chksum); --i >= 0;)
        sum -= 0xFF & header->header.chksum[i];
     sum += ' ' * sizeof header->header.chksum;
 
index a33854ccba2624d7613ba00bd8f71e42f483c0eb..66f87c11770b29f6771e5b56e9b6289d5506bb51 100644 (file)
@@ -1107,7 +1107,7 @@ int ap_proxy_is_domainname(struct dirconn_entry *This, ap_context_t *p)
        return 0;
 
     /* Strip trailing dots */
-    for (i = strlen(addr) - 1; i > 0 && addr[i] == '.'; - ap_context_t )
+    for (i = strlen(addr) - 1; i > 0 && addr[i] == '.'; --i)
        addr[i] = '\0';
 
     This->matcher = proxy_match_domainname;
@@ -1162,7 +1162,7 @@ int ap_proxy_is_hostname(struct dirconn_entry *This, ap_context_t *p)
     This->hostentry = ap_pduphostent (p, &host);
 
     /* Strip trailing dots */
-    for (i = strlen(addr) - 1; i > 0 && addr[i] == '.'; - ap_context_t )
+    for (i = strlen(addr) - 1; i > 0 && addr[i] == '.'; --i)
        addr[i] = '\0';
 
     This->matcher = proxy_match_hostname;