fix build error

This commit is contained in:
Max Lv
2013-11-12 03:56:30 +00:00
committed by vagrant
parent 4606acd773
commit 26c57d61ef
2 changed files with 1 additions and 5 deletions
-4
View File
@@ -619,10 +619,6 @@ static void accept_cb (EV_P_ ev_io *w, int revents)
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
int index = rand() % listener->remote_num;
if (verbose)
{
LOGD("connect to %s:%s", listener->remote_addr[index].host, listener->remote_addr[index].port);
}
err = getaddrinfo(listener->remote_addr[index].host, listener->remote_addr[index].port, &hints, &res);
if (err)
{
+1 -1
View File
@@ -8,7 +8,7 @@
struct listen_ctx
{
ev_io io;
remote_addr_t *remote_host;
remote_addr_t *remote_addr;
int remote_num;
int timeout;
int fd;