Fix build warnings and add changelog entry for evhttp patches.

svn:r1424
This commit is contained in:
Nick Mathewson 2009-08-16 19:22:15 +00:00
parent c8b0fe4ad7
commit 2c1b0e4428
2 changed files with 3 additions and 3 deletions

View File

@ -15,6 +15,7 @@ Changes in 2.0.3-alpha:
o Fix a rare crash bug in evdns.
o Have bufferevent_socket_connect() with no arguments put a bufferevent into connecting mode.
o Support sendfile on Solaris: patch from Caitlin Mercer.
o New functions to explicitly reference a socket used by an evhttp object. Patches from David Reiss.
Changes in 2.0.2-alpha:

5
http.c
View File

@ -2394,7 +2394,7 @@ struct evhttp_bound_socket *
evhttp_bind_socket_with_handle(struct evhttp *http, const char *address, ev_uint16_t port)
{
evutil_socket_t fd;
int res;
struct evhttp_bound_socket *bound;
if ((fd = bind_socket(address, port, 1 /*reuse*/)) == -1)
return (NULL);
@ -2405,8 +2405,7 @@ evhttp_bind_socket_with_handle(struct evhttp *http, const char *address, ev_uint
return (NULL);
}
struct evhttp_bound_socket *bound =
evhttp_accept_socket_with_handle(http, fd);
bound = evhttp_accept_socket_with_handle(http, fd);
if (bound != NULL) {
event_debug(("Bound to port %d - Awaiting connections ... ",