From: Azat Khuzhin Date: Fri, 17 Jun 2016 13:07:15 +0000 (+0300) Subject: test/http: don't mix declarations and code (fixes -Wdeclaration-after-statement) X-Git-Tag: release-2.1.6-beta~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aabf1c2dd166d80fd84c4349f1c93fc5d5f5a1f9;p=libevent test/http: don't mix declarations and code (fixes -Wdeclaration-after-statement) --- diff --git a/test/regress_http.c b/test/regress_http.c index a7c06b9d..2b77c07f 100644 --- a/test/regress_http.c +++ b/test/regress_http.c @@ -1389,9 +1389,8 @@ http_cancel_test(void *arg) struct event_base *inactive_base = NULL; struct evhttp_connection **evcons = NULL; - enum http_cancel_test_type type; - type = (enum http_cancel_test_type)data->setup_data; - + enum http_cancel_test_type type = + (enum http_cancel_test_type)data->setup_data; struct evhttp *http = http_setup(&port, data->base, 0); if (type & BY_HOST) {