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/util.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/util.c')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index 4babc4adcc..745b3a8961 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1953,7 +1953,7 @@ parse_http_time(const char *date, struct tm *tm) /** Given an <b>interval</b> in seconds, try to write it to the * <b>out_len</b>-byte buffer in <b>out</b> in a human-readable form. - * Return 0 on success, -1 on failure. + * Returns a non-negative integer on success, -1 on failure. */ int format_time_interval(char *out, size_t out_len, long interval) |