diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-12-16 08:20:53 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-12-16 08:20:53 -0500 |
commit | c4df0c9f52cfeee414c7316073c92975ebd81c85 (patch) | |
tree | b1b1039f4a40a28868a7395edb9c39209e44f1c9 /src/common/backtrace.c | |
parent | 6ba8afe5f87a1edd16f4c61cbb59a29f9126c6c6 (diff) | |
download | tor-c4df0c9f52cfeee414c7316073c92975ebd81c85.tar.gz tor-c4df0c9f52cfeee414c7316073c92975ebd81c85.zip |
... and fix the linux backtrace_symbols{,_fd} calls
Diffstat (limited to 'src/common/backtrace.c')
-rw-r--r-- | src/common/backtrace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/backtrace.c b/src/common/backtrace.c index 8d544ed704..bed0442471 100644 --- a/src/common/backtrace.c +++ b/src/common/backtrace.c @@ -96,7 +96,7 @@ log_backtrace(int severity, int domain, const char *msg) tor_mutex_acquire(&cb_buf_mutex); depth = backtrace(cb_buf, MAX_DEPTH); - symbols = backtrace_symbols(cb_buf, depth); + symbols = backtrace_symbols(cb_buf, (int)depth); tor_log(severity, domain, "%s. Stack trace:", msg); if (!symbols) { @@ -139,7 +139,7 @@ crash_handler(int sig, siginfo_t *si, void *ctx_) n_fds = tor_log_get_sigsafe_err_fds(&fds); for (i=0; i < n_fds; ++i) - backtrace_symbols_fd(cb_buf, depth, fds[i]); + backtrace_symbols_fd(cb_buf, (int)depth, fds[i]); abort(); } @@ -175,7 +175,7 @@ install_bt_handler(void) * reads won't be denied by the sandbox code */ char **symbols; size_t depth = backtrace(cb_buf, MAX_DEPTH); - symbols = backtrace_symbols(cb_buf, depth); + symbols = backtrace_symbols(cb_buf, (int) depth); if (symbols) free(symbols); } |