aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-10-15 18:04:07 -0400
committerNick Mathewson <nickm@torproject.org>2010-10-15 18:04:07 -0400
commit4dbd8ba008de7eea623e3b760a6c43040d145a8d (patch)
tree17b71a425a199c97c628ef1cb87c3960cc81ac98 /src/common
parent441d90a8f9ed259dc2d84ffc52eeab1b934fd848 (diff)
downloadtor-4dbd8ba008de7eea623e3b760a6c43040d145a8d.tar
tor-4dbd8ba008de7eea623e3b760a6c43040d145a8d.tar.gz
clarify fmt_addr32 documentation to note that the address is in host-order
Diffstat (limited to 'src/common')
-rw-r--r--src/common/address.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/address.c b/src/common/address.c
index 323e0eeac..a3f12ac07 100644
--- a/src/common/address.c
+++ b/src/common/address.c
@@ -925,8 +925,9 @@ fmt_addr(const tor_addr_t *addr)
return buf;
}
-/** Like fmt_addr(), but for IPv4 addresses. Also not thread-safe, also
- * clobbers its return buffer on repeated calls. */
+/** Like fmt_addr(), but takes <b>addr</b> as a host-order IPv4
+ * addresses. Also not thread-safe, also clobbers its return buffer on
+ * repeated calls. */
const char *
fmt_addr32(uint32_t addr)
{