Ver código fonte

clarify fmt_addr32 documentation to note that the address is in host-order

Nick Mathewson 15 anos atrás
pai
commit
4dbd8ba008
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      src/common/address.c

+ 3 - 2
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)
 {