chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/setup.c: Reuse variable i (style)
[adns]
/
src
/
setup.c
diff --git
a/src/setup.c
b/src/setup.c
index dce6e947d779cd6e5e4357c2906ecfcfed3395a8..de031e333e99e32bb20c4c92b84d41a0c91f88d0 100644
(file)
--- a/
src/setup.c
+++ b/
src/setup.c
@@
-604,7
+604,7
@@
static int init_finish(adns_state ads) {
struct sockaddr_in sin;
struct protoent *proto;
struct udpsocket *udp;
struct sockaddr_in sin;
struct protoent *proto;
struct udpsocket *udp;
- int i
, j
;
+ int i;
int r;
if (!ads->nservers) {
int r;
if (!ads->nservers) {
@@
-635,7
+635,7
@@
static int init_finish(adns_state ads) {
return 0;
x_closeudp:
return 0;
x_closeudp:
- for (
j=0; j<ads->nudpsockets; j++) close(ads->udpsockets[j
].fd);
+ for (
i=0; i<ads->nudpsockets; i++) close(ads->udpsockets[i
].fd);
x_free:
free(ads);
return r;
x_free:
free(ads);
return r;