]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Document port_out argument to tor_addr_from_sockaddr
authorNick Mathewson <nickm@torproject.org>
Sat, 6 Feb 2016 20:34:47 +0000 (15:34 -0500)
committerNick Mathewson <nickm@torproject.org>
Sat, 6 Feb 2016 20:34:47 +0000 (15:34 -0500)
src/common/address.c

index 86c32efdd9c07c812b21393945929b7081caf585..70675c0a7a4c6cf33926d218a857aefff1c6b295 100644 (file)
@@ -148,7 +148,9 @@ tor_addr_make_af_unix(tor_addr_t *a)
 }
 
 /** Set the tor_addr_t in <b>a</b> to contain the socket address contained in
- * <b>sa</b>. Return 0 on success and -1 on failure. */
+ * <b>sa</b>.  IF <b>port_out</b> is non-NULL and <b>sa</b> contains a port,
+ * set *<b>port_out</b> to that port. Return 0 on success and -1 on
+ * failure. */
 int
 tor_addr_from_sockaddr(tor_addr_t *a, const struct sockaddr *sa,
                        uint16_t *port_out)