summaryrefslogtreecommitdiff
path: root/ares_options.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-12-27 13:19:37 +0100
committerDaniel Stenberg <daniel@haxx.se>2010-12-27 13:19:37 +0100
commitd70721eb65675dd8d85c5cad24ef589eef4b35de (patch)
tree2642659b1f75074733fb1fa6aba49eda792fd9da /ares_options.c
parentbd6636c1387f4593f6df35297735a1632271da39 (diff)
downloadc-ares-d70721eb65675dd8d85c5cad24ef589eef4b35de.tar.gz
c-ares-d70721eb65675dd8d85c5cad24ef589eef4b35de.tar.bz2
c-ares-d70721eb65675dd8d85c5cad24ef589eef4b35de.zip
ares_set_servers_csv: remove unused variables
Diffstat (limited to 'ares_options.c')
-rw-r--r--ares_options.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/ares_options.c b/ares_options.c
index 7028052..3979efe 100644
--- a/ares_options.c
+++ b/ares_options.c
@@ -139,8 +139,6 @@ int ares_set_servers_csv(ares_channel channel,
char* csv = NULL;
char* ptr;
char* start_host;
- long port;
- bool found_port;
int rv = ARES_SUCCESS;
struct ares_addr_node *servers = NULL;
struct ares_addr_node *last = NULL;
@@ -165,7 +163,6 @@ int ares_set_servers_csv(ares_channel channel,
}
start_host = csv;
- found_port = false;
for (ptr = csv; *ptr; ptr++) {
if (*ptr == ',') {
char* pp = ptr - 1;
@@ -186,9 +183,8 @@ int ares_set_servers_csv(ares_channel channel,
pp--;
}
if ((pp != start_host) && ((pp + 1) < ptr)) {
- /* Found it. */
- found_port = true;
- port = strtol(pp + 1, NULL, 10);
+ /* Found it. Parse over the port number */
+ (void)strtol(pp + 1, NULL, 10);
*pp = 0; /* null terminate host */
}
/* resolve host, try ipv4 first, rslt is in network byte order */
@@ -233,7 +229,6 @@ int ares_set_servers_csv(ares_channel channel,
}
/* Set up for next one */
- found_port = false;
start_host = ptr + 1;
}
}