diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-08-28 14:02:40 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-08-28 14:02:40 -0400 |
commit | 6056d6e0df8900a9e8878cb8321f1f33c04de187 (patch) | |
tree | 810bfe7739bacb05d449796b5e4ec3e093379026 /evrpc.c | |
parent | 7c11e51e1ab19e1eebc7f03d1a7a51f54acf7c32 (diff) | |
download | libevent-6056d6e0df8900a9e8878cb8321f1f33c04de187.tar.gz |
Cleanup on 7c11e51e1ab: restore c90 declaration compliance
Diffstat (limited to 'evrpc.c')
-rw-r--r-- | evrpc.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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; |