chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
site: Replace wait_timeout variable with function
[secnet.git]
/
util.c
diff --git
a/util.c
b/util.c
index 703606172e6b550dd16dc81926ed4359f6eecc5c..d12db66c2361f6c9ebb139fdd007b80b1bb3c70c 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-11,7
+11,7
@@
*
* secnet is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
*
* secnet 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
d
of the License, or
+ * the Free Software Foundation; either version
3
of the License, or
* (at your option) any later version.
*
* secnet is distributed in the hope that it will be useful, but
* (at your option) any later version.
*
* secnet is distributed in the hope that it will be useful, but
@@
-521,7
+521,7
@@
void string_item_to_iaddr(const item_t *item, uint16_t port, union iaddr *ia,
#ifndef CONFIG_IPV6
ia->sin.sin_family=AF_INET;
#ifndef CONFIG_IPV6
ia->sin.sin_family=AF_INET;
- ia->sin.sin_addr.s_addr=
string_item_to_ipaddr(item,desc
);
+ ia->sin.sin_addr.s_addr=
htonl(string_item_to_ipaddr(item,desc)
);
ia->sin.sin_port=htons(port);
#else /* CONFIG_IPV6 => we have adns_text2addr */
ia->sin.sin_port=htons(port);
#else /* CONFIG_IPV6 => we have adns_text2addr */