From: Graham Leggett Date: Sun, 4 Oct 2009 13:24:46 +0000 (+0000) Subject: Style fixes. X-Git-Tag: 2.3.3~208 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a922151440fa246cbb85c3e37ce1da93460a3a0c;p=apache Style fixes. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@821539 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/cache_util.c b/modules/cache/cache_util.c index 2a9a2d30e1..73506f6834 100644 --- a/modules/cache/cache_util.c +++ b/modules/cache/cache_util.c @@ -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; } }