Fix variable declaration warning in scoreboard.c
Submitted by: VladimĂr Chlup <vchlup redhat.com>
Github: closes #516
Reviewed by: rpluem, jorton, ylavic
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1926108 13f79535-47bb-0310-9956-
ffa450edef68
undefined otherwise.
rpluem says: Good catch. Added r1926091 and reset votes.
- *) scoreboard.c: Fix variable declaration warning in scoreboard.c
- Trunk version of patch:
- https://svn.apache.org/r1923806
- Backport version for 2.4.x of patch:
- Trunk version of patch works
- svn merge -c 1923806 ^/httpd/httpd/trunk .
- +1: rpluem, jorton, ylavic
-
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
[ New proposals should be added at the end of the list ]
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;