]> granicus.if.org Git - apache/commitdiff
axe an unused variable
authorJeff Trawick <trawick@apache.org>
Fri, 25 Jan 2002 12:04:56 +0000 (12:04 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 25 Jan 2002 12:04:56 +0000 (12:04 +0000)
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

server/scoreboard.c

index 7726379862a401cea348eb752314f8021412ee23..396627f24cc4c9f56fe4a0c98677eb4ce71b8006 100644 (file)
@@ -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;