From 6056d6e0df8900a9e8878cb8321f1f33c04de187 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 28 Aug 2011 14:02:40 -0400 Subject: [PATCH] Cleanup on 7c11e51e1ab: restore c90 declaration compliance --- evrpc.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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;