From: Jeff Trawick Date: Fri, 25 Jan 2002 12:04:56 +0000 (+0000) Subject: axe an unused variable X-Git-Tag: 2.0.31~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a0f1357d642eedfdf072bd71db1047ec45da4bd;p=apache axe an unused variable don't pass uninitialized rv to ap_log_error as the error code git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93028 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/scoreboard.c b/server/scoreboard.c index 7726379862..396627f24c 100644 --- a/server/scoreboard.c +++ b/server/scoreboard.c @@ -203,14 +203,11 @@ static apr_status_t open_scoreboard(apr_pool_t *p) apr_status_t reopen_scoreboard(apr_pool_t *p, int detached) { #if APR_HAS_SHARED_MEMORY - apr_status_t rv; - char *fname = NULL; - if (!detached) { return APR_SUCCESS; } if (apr_shm_size_get(ap_scoreboard_shm) < scoreboard_size) { - ap_log_error(APLOG_MARK, APLOG_CRIT, rv, NULL, + ap_log_error(APLOG_MARK, APLOG_CRIT | APLOG_NOERRNO, 0, NULL, "Fatal error: shared scoreboard too small for child!"); apr_shm_detach(ap_scoreboard_shm); ap_scoreboard_shm = NULL;