summaryrefslogtreecommitdiff
path: root/gweb
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-05-27 17:26:44 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2011-05-27 17:26:44 (GMT)
commitc084aeb54a27325f1b4dc2c8281e51c0f197e4b4 (patch)
tree932f7cf95c1bcd86c5ae4e6a06486a21d31e5d38 /gweb
parenta8dd1fe22648bd48c92698dc3a5af80e4a9fc8eb (diff)
downloadconnman-c084aeb54a27325f1b4dc2c8281e51c0f197e4b4.zip
connman-c084aeb54a27325f1b4dc2c8281e51c0f197e4b4.tar.gz
connman-c084aeb54a27325f1b4dc2c8281e51c0f197e4b4.tar.bz2
gweb: Remove usage of unused variables
Diffstat (limited to 'gweb')
-rw-r--r--gweb/gresolv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gweb/gresolv.c b/gweb/gresolv.c
index 632f0c3..a334d84 100644
--- a/gweb/gresolv.c
+++ b/gweb/gresolv.c
@@ -562,6 +562,8 @@ static int send_query(GResolv *resolv, const unsigned char *buf, int len)
sk = g_io_channel_unix_get_fd(nameserver->udp_channel);
sent = send(sk, buf, len, 0);
+ if (sent < 0)
+ continue;
}
return 0;
@@ -623,7 +625,7 @@ static void parse_response(struct resolv_nameserver *nameserver,
GList *list;
ns_msg msg;
ns_rr rr;
- int i, n, rcode, count;
+ int i, rcode, count;
debug(resolv, "response from %s", nameserver->address);
@@ -675,7 +677,7 @@ static void parse_response(struct resolv_nameserver *nameserver,
lookup->ipv4_query = NULL;
}
- for (i = 0, n = 0; i < count; i++) {
+ for (i = 0; i < count; i++) {
ns_parserr(&msg, ns_s_an, i, &rr);
if (ns_rr_class(rr) != ns_c_in)