]> granicus.if.org Git - libevent/commitdiff
Fix harmless clang enum warning
authorSebastian Hahn <sebastian@torproject.org>
Mon, 31 Dec 2012 17:29:56 +0000 (18:29 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Mon, 31 Dec 2012 17:29:56 +0000 (18:29 +0100)
http.c

diff --git a/http.c b/http.c
index 22a46a951b9c1a4428d72434fe5673a6e46cdf76..0976e045f8106033be3e0f16f2e349becb9bff88 100644 (file)
--- a/http.c
+++ b/http.c
@@ -1651,7 +1651,7 @@ evhttp_parse_request_line(struct evhttp_request *req, char *line)
                break;
        } /* switch */
 
-       if (type == EVHTTP_REQ_UNKNOWN_) {
+       if ((int)type == EVHTTP_REQ_UNKNOWN_) {
                event_debug(("%s: bad method %s on request %p from %s",
                        __func__, method, req, req->remote_host));
                 /* No error yet; we'll give a better error later when