chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Licensing: Delete FSF address from INSTALL
[adns]
/
src
/
transmit.c
diff --git
a/src/transmit.c
b/src/transmit.c
index be72cf237e1f23d6e4a5ef00e286e8bdc2e9605e..28462b38fc96d03b0f4ea7cf16d848145c671092 100644
(file)
--- a/
src/transmit.c
+++ b/
src/transmit.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
*
* 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,
* 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
* 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 <errno.h>
*/
#include <errno.h>
@@
-242,8
+241,8
@@
static void query_usetcp(adns_query qu, struct timeval now) {
struct udpsocket *adns__udpsocket_by_af(adns_state ads, int af) {
int i;
struct udpsocket *adns__udpsocket_by_af(adns_state ads, int af) {
int i;
- for (i=0; i<ads->nudp; i++)
- if (ads->udpsocket
[i].af == af) return &ads->udpsocket
[i];
+ for (i=0; i<ads->nudp
sockets
; i++)
+ if (ads->udpsocket
s[i].af == af) return &ads->udpsockets
[i];
return 0;
}
return 0;
}