From: William A. Rowe Jr Date: Fri, 28 Aug 2009 01:31:23 +0000 (+0000) Subject: Add parenthesis for legibility and correcting association, X-Git-Tag: 2.3.3~363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23a2ebfd33e9bcccfb108093579b7b56d1eab5fb;p=apache Add parenthesis for legibility and correcting association, and axe an unused variable git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@808723 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/cache_util.c b/modules/cache/cache_util.c index ad838db1b1..81ce371d28 100644 --- a/modules/cache/cache_util.c +++ b/modules/cache/cache_util.c @@ -246,8 +246,8 @@ CACHE_DECLARE(apr_status_t) ap_cache_try_lock(cache_server_conf *conf, lockname); return status; } - if (APR_SUCCESS == status && ((now - finfo.mtime) > conf->lockmaxage) - || (now < finfo.mtime)) { + if ((status == APR_SUCCESS) && (((now - finfo.mtime) > conf->lockmaxage) + || (now < finfo.mtime))) { ap_log_error(APLOG_MARK, APLOG_INFO, status, r->server, "Cache lock file for '%s' too old, removing: %s", r->uri, lockname); @@ -311,7 +311,6 @@ CACHE_DECLARE(apr_status_t) ap_cache_remove_lock(cache_server_conf *conf, apr_pool_userdata_get(&dummy, CACHE_LOCKNAME_KEY, r->pool); lockname = (const char *)dummy; if (!lockname) { - const char *path; char dir[5]; /* create the key if it doesn't exist */