summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@persephoneslair.org>2012-06-20 14:43:50 -0700
committerNick Mathewson <nickm@torproject.org>2012-06-22 22:21:20 -0400
commitc21af69f29ca5a55385a926fdac4a8e6c8fb6d37 (patch)
tree854764142de6c2419cd722a0970bc94425ddef18 /src/common/util.h
parent4c62cc6f9997c215ff2687ce342e00d630d922c7 (diff)
downloadtor-c21af69f29ca5a55385a926fdac4a8e6c8fb6d37.tar.gz
tor-c21af69f29ca5a55385a926fdac4a8e6c8fb6d37.zip
Refactor unsigned int hex formatting out of format_helper_exit_status() in util.c
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index a2b196c88b..6b7c6fb623 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -471,6 +471,8 @@ void tor_process_handle_destroy(process_handle_t *process_handle,
#ifdef UTIL_PRIVATE
/* Prototypes for private functions only used by util.c (and unit tests) */
+int format_hex_number_for_helper_exit_status(unsigned int x, char *buf,
+ int max_len);
void format_helper_exit_status(unsigned char child_state,
int saved_errno, char *hex_errno);