diff options
author | teor <teor2345@gmail.com> | 2017-05-23 18:44:45 +1000 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2017-05-23 18:44:45 +1000 |
commit | af98b862a51c001efae1eae4f467e0c9b835953e (patch) | |
tree | 3018863cf8dbb86cadb61253485b8023b502ca77 /src/common/address.c | |
parent | 4e3ea6d5c8b81d195101d09478d362ab09da66fb (diff) | |
download | tor-af98b862a51c001efae1eae4f467e0c9b835953e.tar.gz tor-af98b862a51c001efae1eae4f467e0c9b835953e.zip |
Fix comments of functions that return tor_snprintf
No code changes needed: in the places where we actually check the
return value of these functions, we handle it correctly.
Diffstat (limited to 'src/common/address.c')
-rw-r--r-- | src/common/address.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/address.c b/src/common/address.c index c5d0e918ca..a6fd8c076a 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -564,8 +564,8 @@ tor_addr_parse_PTR_name(tor_addr_t *result, const char *address, /** Convert <b>addr</b> to an in-addr.arpa name or a .ip6.arpa name, * and store the result in the <b>outlen</b>-byte buffer at - * <b>out</b>. Return the number of chars written to <b>out</b>, not - * including the trailing \0, on success. Returns -1 on failure. */ + * <b>out</b>. Returns a non-negative integer on success. + * Returns -1 on failure. */ int tor_addr_to_PTR_name(char *out, size_t outlen, const tor_addr_t *addr) @@ -2051,7 +2051,8 @@ parse_port_range(const char *port, uint16_t *port_min_out, /** Given an IPv4 in_addr struct *<b>in</b> (in network order, as usual), * write it as a string into the <b>buf_len</b>-byte buffer in - * <b>buf</b>. + * <b>buf</b>. Returns a non-negative integer on success. + * Returns -1 on failure. */ int tor_inet_ntoa(const struct in_addr *in, char *buf, size_t buf_len) |