]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix variable declaration warning in scoreboard.c
authorJoe Orton <jorton@apache.org>
Fri, 14 Feb 2025 09:23:28 +0000 (09:23 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 14 Feb 2025 09:23:28 +0000 (09:23 +0000)
Submitted by: VladimĂ­r Chlup <vchlup redhat.com>
Github: closes #516

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1923806 13f79535-47bb-0310-9956-ffa450edef68

server/scoreboard.c

index b4522fd9d08ea99aa539a8a7e96ecd1d787033af..db91aa9be12a9aa08fa68953c2583ee395540ae7 100644 (file)
@@ -657,11 +657,11 @@ AP_DECLARE(void) ap_time_process_request(ap_sb_handle_t *sbh, int status)
 AP_DECLARE(void) ap_set_time_process_request(ap_sb_handle_t* const sbh,
                const apr_time_t timebeg,const apr_time_t timeend)
 {
+    worker_score *ws;
     if (!sbh || sbh->child_num < 0)
         return;
 
-    worker_score* const ws =
-       &ap_scoreboard_image->servers[sbh->child_num][sbh->thread_num];
+    ws = &ap_scoreboard_image->servers[sbh->child_num][sbh->thread_num];
     
     ws->start_time = timebeg;
     ws->stop_time = ws->last_used = timeend;