Skip to content

Commit

Permalink
Fix variable declaration warning in scoreboard.c
Browse files Browse the repository at this point in the history
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
  • Loading branch information
notroj committed Feb 14, 2025
1 parent e3d014c commit 69c4c6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/scoreboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 69c4c6b

Please sign in to comment.