1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-05 05:30:39 +03:00

Style fixes.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@821539 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Graham Leggett
2009-10-04 13:24:46 +00:00
parent a2bb3c8022
commit a922151440

View File

@@ -48,7 +48,8 @@ static int uri_meets_conditions(const apr_uri_t filter, const int pathlen,
if (url.scheme || url.hostname) {
return 0;
}
} else {
}
else {
/* The URI scheme must be present and identical except for case. */
if (!url.scheme || strcasecmp(filter.scheme, url.scheme)) {
return 0;
@@ -69,7 +70,8 @@ static int uri_meets_conditions(const apr_uri_t filter, const int pathlen,
url.hostname + uhostlen - fhostlen)) {
return 0;
}
} else if (filter.hostname[0] == '*') {
}
else if (filter.hostname[0] == '*') {
const size_t fhostlen = strlen(filter.hostname + 1);
const size_t uhostlen = url.hostname ? strlen(url.hostname) : 0;
@@ -77,7 +79,8 @@ static int uri_meets_conditions(const apr_uri_t filter, const int pathlen,
url.hostname + uhostlen - fhostlen)) {
return 0;
}
} else if (!url.hostname || strcasecmp(filter.hostname, url.hostname)) {
}
else if (!url.hostname || strcasecmp(filter.hostname, url.hostname)) {
return 0;
}
}
@@ -105,7 +108,8 @@ static int uri_meets_conditions(const apr_uri_t filter, const int pathlen,
if (!url.path) {
if (*filter.path == '/' && pathlen == 1) {
return 1;
} else {
}
else {
return 0;
}
}