Backport: Fix warning when compiling with dmalloc.

svn:r14831
This commit is contained in:
Nick Mathewson 2008-05-29 14:41:49 +00:00
parent 74a7bca444
commit 11b1ee320e
1 changed files with 5 additions and 3 deletions

View File

@ -1966,9 +1966,11 @@ tor_main(int argc, char *argv[])
tor_threads_init();
init_logging();
#ifdef USE_DMALLOC
int r = CRYPTO_set_mem_ex_functions(_tor_malloc, _tor_realloc,
_tor_dmalloc_free);
log_notice(LD_CONFIG, "Set up dmalloc; returned %d", r);
{
int r = CRYPTO_set_mem_ex_functions(_tor_malloc, _tor_realloc,
_tor_dmalloc_free);
log_notice(LD_CONFIG, "Set up dmalloc; returned %d", r);
}
#endif
#ifdef NT_SERVICE
{