aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-06-26 10:48:31 -0400
committerNick Mathewson <nickm@torproject.org>2012-06-26 10:48:31 -0400
commit201b852c277bdf4bf70a656871d502318bd5b25b (patch)
tree043d3a909d6c03c896416748862a636afe3b4e1d /src/common
parentc4586f4df7b7b403867baab03508ccc2f078a0ec (diff)
downloadtor-201b852c277bdf4bf70a656871d502318bd5b25b.tar
tor-201b852c277bdf4bf70a656871d502318bd5b25b.tar.gz
Fix a compilation warning with clang 3.0
In b1ad1a1d0266a20bb we introduced an implicit (but safe) long-to-int shortening that clang didn't like. Warning not in any released version of Tor.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index e5b51b9a9..d94dcf200 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -3347,7 +3347,7 @@ format_helper_exit_status(unsigned char child_state, int saved_errno,
*cur++ = '\n';
*cur++ = '\0';
- res = cur - hex_errno - 1;
+ res = (int)(cur - hex_errno - 1);
goto done;