summaryrefslogtreecommitdiff
path: root/ahost.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-13 12:28:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-13 12:28:27 +0000
commit59c69ebd1a617a0183c2321538070995e7ba4b66 (patch)
tree8c38d158da11e1fa9aa23b5078b84b97b7def557 /ahost.c
parent87308b0e3a20b0ffff5a581ea10c5588044395f7 (diff)
downloadc-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 'ahost.c')
-rw-r--r--ahost.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ahost.c b/ahost.c
index 6aa6e3f..f643c75 100644
--- a/ahost.c
+++ b/ahost.c
@@ -44,7 +44,6 @@ int main(int argc, char **argv)
int status, nfds;
fd_set read_fds, write_fds;
struct timeval *tvp, tv;
- char *errmem;
struct in_addr addr;
#ifdef WIN32
@@ -60,7 +59,6 @@ int main(int argc, char **argv)
if (status != ARES_SUCCESS)
{
fprintf(stderr, "ares_init: %s\n", ares_strerror(status));
- ares_free_errmem(errmem);
return 1;
}
@@ -97,12 +95,11 @@ int main(int argc, char **argv)
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;
}