diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-07-19 13:03:23 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-07-19 13:26:25 -0400 |
commit | 5343ee1a06ebb959fc77753898015186b94a5daa (patch) | |
tree | 22575131739f42d7c4435cd28f42e09763861f81 /src/common/util.h | |
parent | 8f0755fa85b9c1fb38fd122719e483cc11d89069 (diff) | |
download | tor-5343ee1a06ebb959fc77753898015186b94a5daa.tar.gz tor-5343ee1a06ebb959fc77753898015186b94a5daa.zip |
Add a signal-safe decimal formatting function
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index 0a8e4a23fc..f6d828796d 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -520,6 +520,7 @@ int32_t tor_weak_random_range(tor_weak_rng_t *rng, int32_t top); #define tor_weak_random_one_in_n(rng, n) (0==tor_weak_random_range((rng),(n))) int format_hex_number_sigsafe(unsigned int x, char *buf, int max_len); +int format_dec_number_sigsafe(unsigned long x, char *buf, int max_len); #ifdef UTIL_PRIVATE /* Prototypes for private functions only used by util.c (and unit tests) */ |