aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-12 16:02:15 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-12 16:02:15 +0000
commita91fc48b39b13768dc9069921f2d7e41456debfa (patch)
treeab0ab48d56f74d22ce73baa4453bb03712789bcc /src/common/util.c
parent0068415b800ef78fb75466f5c36544db6686a76a (diff)
downloadtor-a91fc48b39b13768dc9069921f2d7e41456debfa.tar
tor-a91fc48b39b13768dc9069921f2d7e41456debfa.tar.gz
Note byte-order on result for parse_addr_port()
svn:r2444
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 4391ac241..5065e9721 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -2032,9 +2032,9 @@ int tor_lookup_hostname(const char *name, uint32_t *addr)
* <b>address</b> is provided, set *<b>address</b> to a copy of the
* host portion of the string. If <b>addr</b> is provided, try to
* resolve the host portion of the string and store it into
- * *<b>addr</b>. If <b>port</b> is provided, store the port number
- * into *<b>port</b>, or 0 if no port is given. Return 0 on success,
- * -1 on failure.
+ * *<b>addr</b> (in network byte order). If <b>port</b> is provided,
+ * store the port number into *<b>port</b>, or 0 if no port is given.
+ * Return 0 on success, -1 on failure.
*/
int
parse_addr_port(const char *addrport, char **address, uint32_t *addr,