From: Nick Mathewson Date: Sun, 28 Aug 2011 18:02:40 +0000 (-0400) Subject: Cleanup on 7c11e51e1ab: restore c90 declaration compliance X-Git-Tag: release-2.0.14-stable~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6056d6e0df8900a9e8878cb8321f1f33c04de187;p=libevent Cleanup on 7c11e51e1ab: restore c90 declaration compliance --- diff --git a/evrpc.c b/evrpc.c index 0c084a4a..72f08a89 100644 --- a/evrpc.c +++ b/evrpc.c @@ -338,9 +338,12 @@ static void evrpc_request_cb_closure(void *arg, enum EVRPC_HOOK_RESULT hook_res) { struct evrpc_req_generic *rpc_state = arg; + struct evrpc *rpc; + struct evhttp_request *req; + EVUTIL_ASSERT(rpc_state); - struct evrpc *rpc = rpc_state->rpc; - struct evhttp_request *req = rpc_state->http_req; + rpc = rpc_state->rpc; + req = rpc_state->http_req; if (hook_res == EVRPC_TERMINATE) goto error; @@ -472,8 +475,9 @@ static void evrpc_request_done_closure(void *arg, enum EVRPC_HOOK_RESULT hook_res) { struct evrpc_req_generic *rpc_state = arg; + struct evhttp_request *req; EVUTIL_ASSERT(rpc_state); - struct evhttp_request *req = rpc_state->http_req; + req = rpc_state->http_req; if (hook_res == EVRPC_TERMINATE) goto error;