]> granicus.if.org Git - libevent/commitdiff
Fix a couple of compilation warnings in regress_http.c
authorNick Mathewson <nickm@torproject.org>
Wed, 8 Jan 2014 17:46:09 +0000 (12:46 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 8 Jan 2014 17:46:09 +0000 (12:46 -0500)
test/regress_http.c

index 66f9a95912a786e5d9ad2e10dac4b3352259885c..c87a3b6489998410e83d4ed08bea52381ce9b4dd 100644 (file)
@@ -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));