From: Nick Mathewson Date: Wed, 8 Jan 2014 17:46:09 +0000 (-0500) Subject: Fix a couple of compilation warnings in regress_http.c X-Git-Tag: release-2.1.4-alpha~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=860767e84121dd7065d91f8963020cad51c0d36b;p=libevent Fix a couple of compilation warnings in regress_http.c --- diff --git a/test/regress_http.c b/test/regress_http.c index 66f9a959..c87a3b64 100644 --- a/test/regress_http.c +++ b/test/regress_http.c @@ -743,7 +743,7 @@ http_delete_test(void *arg) static void http_sent_cb(struct evhttp_request *req, void *arg) { - unsigned int val = (unsigned int)arg; + ev_uintptr_t val = (ev_uintptr_t)arg; struct evbuffer *b; if (val != 0xDEADBEEF) { @@ -2783,9 +2783,9 @@ http_chunked_errorcb(struct bufferevent *bev, short what, void *arg) test_ok = -1; if ((what & BEV_EVENT_EOF) != 0) { - req = evhttp_request_new(NULL, NULL); const char *header; enum message_read_status done; + req = evhttp_request_new(NULL, NULL); /* req->kind = EVHTTP_RESPONSE; */ done = evhttp_parse_firstline_(req, bufferevent_get_input(bev));