diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-12-27 13:18:54 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-12-27 13:18:54 +0100 |
commit | bd6636c1387f4593f6df35297735a1632271da39 (patch) | |
tree | 1330db067f9aafdd1e6554d1f990870a9f43cbda /ares_init.c | |
parent | 39d7f64361fc5260df033c48811e61f24d198cbd (diff) | |
download | c-ares-bd6636c1387f4593f6df35297735a1632271da39.tar.gz c-ares-bd6636c1387f4593f6df35297735a1632271da39.tar.bz2 c-ares-bd6636c1387f4593f6df35297735a1632271da39.zip |
init_by_resolv_conf: fix compiler warnings
The code received the return codes in the 'status' variable without
using it. Instead we just ignore those particular errors.
Diffstat (limited to 'ares_init.c')
-rw-r--r-- | ares_init.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ares_init.c b/ares_init.c index a10f7f3..d2f4a72 100644 --- a/ares_init.c +++ b/ares_init.c @@ -899,7 +899,8 @@ DhcpNameServer while ((status = ares__read_line(fp, &line, &linesize)) == ARES_SUCCESS) { if ((p = try_config(line, "hosts:", '\0')) && !channel->lookups) - status = config_lookup(channel, p, "dns", "files"); + /* ignore errors */ + (void)config_lookup(channel, p, "dns", "files"); } fclose(fp); } @@ -926,7 +927,8 @@ DhcpNameServer while ((status = ares__read_line(fp, &line, &linesize)) == ARES_SUCCESS) { if ((p = try_config(line, "order", '\0')) && !channel->lookups) - status = config_lookup(channel, p, "bind", "hosts"); + /* ignore errors */ + (void)config_lookup(channel, p, "bind", "hosts"); } fclose(fp); } @@ -953,7 +955,8 @@ DhcpNameServer while ((status = ares__read_line(fp, &line, &linesize)) == ARES_SUCCESS) { if ((p = try_config(line, "hosts=", '\0')) && !channel->lookups) - status = config_lookup(channel, p, "bind", "local"); + /* ignore errors */ + (void)config_lookup(channel, p, "bind", "local"); } fclose(fp); } |