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:
Paul Querna
2008-12-21 22:58:56 +00:00
parent 8b7c73e48a
commit 5eb866768d

View File

@ -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);