diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-05-27 10:26:44 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-05-27 10:26:44 -0700 |
commit | c084aeb54a27325f1b4dc2c8281e51c0f197e4b4 (patch) | |
tree | 932f7cf95c1bcd86c5ae4e6a06486a21d31e5d38 /gweb | |
parent | a8dd1fe22648bd48c92698dc3a5af80e4a9fc8eb (diff) | |
download | connman-c084aeb54a27325f1b4dc2c8281e51c0f197e4b4.tar.gz connman-c084aeb54a27325f1b4dc2c8281e51c0f197e4b4.tar.bz2 connman-c084aeb54a27325f1b4dc2c8281e51c0f197e4b4.zip |
gweb: Remove usage of unused variables
Diffstat (limited to 'gweb')
-rw-r--r-- | gweb/gresolv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gweb/gresolv.c b/gweb/gresolv.c index 632f0c3f..a334d844 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) |