mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-17 00:07:04 -04:00
Remote some dead code from dns-example.c
Found by Dave Heart
This commit is contained in:
parent
93a1abb374
commit
744c7456c7
@ -72,7 +72,6 @@ static void
|
||||
gai_callback(int err, struct evutil_addrinfo *ai, void *arg)
|
||||
{
|
||||
const char *name = arg;
|
||||
struct evutil_addrinfo *ai_first = NULL;
|
||||
int i;
|
||||
if (err) {
|
||||
printf("%s: %s\n", name, evutil_gai_strerror(err));
|
||||
@ -95,8 +94,6 @@ gai_callback(int err, struct evutil_addrinfo *ai, void *arg)
|
||||
printf("[%d] %s: %s\n",i,name,buf);
|
||||
}
|
||||
}
|
||||
if (ai_first)
|
||||
evutil_freeaddrinfo(ai_first);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user