X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/blobdiff_plain/97a937c8b7052d9ad87bb20394e1753a65fa3f37..c002fd49f5cf1f40c6bf36ee1b39a038d085f330:/src/setup.c diff --git a/src/setup.c b/src/setup.c index dce6e94..b51502f 100644 --- a/src/setup.c +++ b/src/setup.c @@ -12,7 +12,7 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) + * the Free Software Foundation; either version 3, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, @@ -21,8 +21,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * along with this program; if not, write to the Free Software Foundation. */ #include @@ -604,7 +603,7 @@ static int init_finish(adns_state ads) { struct sockaddr_in sin; struct protoent *proto; struct udpsocket *udp; - int i, j; + int i; int r; if (!ads->nservers) { @@ -635,7 +634,7 @@ static int init_finish(adns_state ads) { return 0; x_closeudp: - for (j=0; jnudpsockets; j++) close(ads->udpsockets[j].fd); + for (i=0; inudpsockets; i++) close(ads->udpsockets[i].fd); x_free: free(ads); return r;