summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-07-19 13:03:23 -0400
committerNick Mathewson <nickm@torproject.org>2013-07-19 13:26:25 -0400
commit5343ee1a06ebb959fc77753898015186b94a5daa (patch)
tree22575131739f42d7c4435cd28f42e09763861f81 /src/common/util.h
parent8f0755fa85b9c1fb38fd122719e483cc11d89069 (diff)
downloadtor-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.h1
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) */