mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Fix all of those annoying --i -> - ap_context_t problems caused by a
search/replace gone wrong. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83859 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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;
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user