diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-07-26 10:16:47 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-07-26 10:16:47 -0400 |
commit | 6355b2a4caeacf25cab5f790ae7e163b1fe0d1f0 (patch) | |
tree | a2fdc9f856b0d2c39fc60592b1358f1432831323 /test | |
parent | 3cde5bf57a993e61a735c53999160e8c480d85f2 (diff) | |
download | libevent-6355b2a4caeacf25cab5f790ae7e163b1fe0d1f0.tar.gz |
Remove unused variable; spotted by coverity
Diffstat (limited to 'test')
-rw-r--r-- | test/regress_dns.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/test/regress_dns.c b/test/regress_dns.c index 557a63d6..9a2e4d76 100644 --- a/test/regress_dns.c +++ b/test/regress_dns.c @@ -1048,7 +1048,6 @@ test_bufferevent_connect_hostname(void *arg) int expect_err5; struct evdns_base *dns=NULL; struct evdns_server_port *port=NULL; - evutil_socket_t server_fd=-1; struct sockaddr_in sin; int listener_port=-1; ev_uint16_t dns_port=0; @@ -1150,8 +1149,6 @@ test_bufferevent_connect_hostname(void *arg) end: if (listener) evconnlistener_free(listener); - if (server_fd>=0) - evutil_closesocket(server_fd); if (port) evdns_close_server_port(port); if (dns) |