You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2025/02/14 09:23:28 UTC
svn commit: r1923806 - /httpd/httpd/trunk/server/scoreboard.c
Author: jorton
Date: Fri Feb 14 09:23:28 2025
New Revision: 1923806
URL: http://svn.apache.org/viewvc?rev=1923806&view=rev
Log:
Fix variable declaration warning in scoreboard.c
Submitted by: VladimĂr Chlup <vchlup redhat.com>
Github: closes #516
Modified:
httpd/httpd/trunk/server/scoreboard.c
Modified: httpd/httpd/trunk/server/scoreboard.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/scoreboard.c?rev=1923806&r1=1923805&r2=1923806&view=diff
==============================================================================
--- httpd/httpd/trunk/server/scoreboard.c (original)
+++ httpd/httpd/trunk/server/scoreboard.c Fri Feb 14 09:23:28 2025
@@ -657,11 +657,11 @@ AP_DECLARE(void) ap_time_process_request
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;