struct hostent *hostent;
fd_set read_fds, write_fds;
struct timeval *tvp, tv;
- char *errmem;
#ifdef WIN32
WORD wVersionRequested = MAKEWORD(1,1);
{
fprintf(stderr, "ares_init_options: %s\n",
ares_strerror(status));
- ares_free_errmem(errmem);
return 1;
}
static void callback(void *arg, int status, unsigned char *abuf, int alen)
{
- char *name = (char *) arg, *errmem;
+ char *name = (char *) arg;
int id, qr, opcode, aa, tc, rd, ra, rcode;
unsigned int qdcount, ancount, nscount, arcount, i;
const unsigned char *aptr;
if (status != ARES_SUCCESS)
{
printf("%s\n", ares_strerror(status));
- ares_free_errmem(errmem);
if (!abuf)
return;
}
int status, nfds;
fd_set read_fds, write_fds;
struct timeval *tvp, tv;
- char *errmem;
struct in_addr addr;
#ifdef WIN32
if (status != ARES_SUCCESS)
{
fprintf(stderr, "ares_init: %s\n", ares_strerror(status));
- ares_free_errmem(errmem);
return 1;
}
static void callback(void *arg, int status, struct hostent *host)
{
struct in_addr addr;
- char *mem, **p;
+ char **p;
if (status != ARES_SUCCESS)
{
fprintf(stderr, "%s: %s\n", (char *) arg, ares_strerror(status));
- ares_free_errmem(mem);
return;
}