diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-13 12:28:27 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-13 12:28:27 +0000 |
commit | 59c69ebd1a617a0183c2321538070995e7ba4b66 (patch) | |
tree | 8c38d158da11e1fa9aa23b5078b84b97b7def557 /adig.c | |
parent | 87308b0e3a20b0ffff5a581ea10c5588044395f7 (diff) | |
download | c-ares-59c69ebd1a617a0183c2321538070995e7ba4b66.tar.gz c-ares-59c69ebd1a617a0183c2321538070995e7ba4b66.tar.bz2 c-ares-59c69ebd1a617a0183c2321538070995e7ba4b66.zip |
removed usage of unset variables (by a function that does nothing!)
Diffstat (limited to 'adig.c')
-rw-r--r-- | adig.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -140,7 +140,6 @@ int main(int argc, char **argv) struct hostent *hostent; fd_set read_fds, write_fds; struct timeval *tvp, tv; - char *errmem; #ifdef WIN32 WORD wVersionRequested = MAKEWORD(1,1); @@ -240,7 +239,6 @@ int main(int argc, char **argv) { fprintf(stderr, "ares_init_options: %s\n", ares_strerror(status)); - ares_free_errmem(errmem); return 1; } @@ -281,7 +279,7 @@ int main(int argc, char **argv) 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; @@ -296,7 +294,6 @@ static void callback(void *arg, int status, unsigned char *abuf, int alen) if (status != ARES_SUCCESS) { printf("%s\n", ares_strerror(status)); - ares_free_errmem(errmem); if (!abuf) return; } |