mirror of
https://github.com/apache/httpd.git
synced 2025-08-20 16:09:55 +00:00
Fix C90 forbids mixed declarations and code.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728547 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -108,6 +108,7 @@ static apr_status_t read_heartbeats(const char *path, apr_hash_t *servers,
|
||||
hb_server_t *server;
|
||||
char buf[4096];
|
||||
apr_size_t bsize = sizeof(buf);
|
||||
const char *ip;
|
||||
|
||||
apr_brigade_cleanup(tmpbb);
|
||||
|
||||
@ -142,7 +143,7 @@ static apr_status_t read_heartbeats(const char *path, apr_hash_t *servers,
|
||||
continue;
|
||||
}
|
||||
|
||||
const char *ip = apr_pstrndup(pool, buf, t - buf);
|
||||
ip = apr_pstrndup(pool, buf, t - buf);
|
||||
t++;
|
||||
|
||||
server = apr_hash_get(servers, ip, APR_HASH_KEY_STRING);
|
||||
|
Reference in New Issue
Block a user