]> granicus.if.org Git - libevent/commitdiff
fix build on unix side
authorNiels Provos <provos@gmail.com>
Tue, 24 Jun 2008 22:43:19 +0000 (22:43 +0000)
committerNiels Provos <provos@gmail.com>
Tue, 24 Jun 2008 22:43:19 +0000 (22:43 +0000)
svn:r866

http.c

diff --git a/http.c b/http.c
index f2b69852be94a8ac9ceb4682fc2b22a8a04dc283..6c230e6d1c088550997c4afaa7d190b0b64a347c 100644 (file)
--- a/http.c
+++ b/http.c
@@ -2601,7 +2601,7 @@ evhttp_get_request(struct evhttp *http, evutil_socket_t fd,
 
        evcon = evhttp_get_request_connection(http, fd, sa, salen);
        if (evcon == NULL) {
-               event_warn(1, "%s: cannot get connection on %d", __func__, fd);
+               event_warn("%s: cannot get connection on %d", __func__, fd);
                return;
        }
 
@@ -2663,7 +2663,7 @@ name_from_addr(struct sockaddr *sa, socklen_t salen,
 #ifdef HAVE_GETNAMEINFO
        ni_result = getnameinfo(sa, salen,
                ntop, sizeof(ntop), strport, sizeof(strport),
-               NI_NUMERICHOST|NI_NUMERICSERV)
+               NI_NUMERICHOST|NI_NUMERICSERV);
        
        if (ni_result != 0) {
                if (ni_result == EAI_SYSTEM)