aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-08-11 07:09:17 +0000
committerNick Mathewson <nickm@torproject.org>2006-08-11 07:09:17 +0000
commit09a895e222f446d400337a3b65b8563705364ec0 (patch)
tree28329a7eeb802fe270e7a3bde2aaf26ff0de2f3d /src/or/main.c
parentb07525d316c6121d86bb8fa9664326f9b160604c (diff)
downloadtor-09a895e222f446d400337a3b65b8563705364ec0.tar
tor-09a895e222f446d400337a3b65b8563705364ec0.tar.gz
r7324@Kushana: nickm | 2006-08-10 23:23:15 -0700
Add more warnings to the list of those we tolerate. Start using GCC attributes more, for better error checking and better code generation. svn:r7020
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 4370dcbc1..9c34e325b 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1290,17 +1290,17 @@ signal_callback(int fd, short events, void *arg)
}
}
+extern uint64_t buf_total_used;
+extern uint64_t buf_total_alloc;
+extern uint64_t rephist_total_alloc;
+extern uint32_t rephist_total_num;
+
/**
* Write current memory usage information to the log.
*/
static void
dumpmemusage(int severity)
{
- extern uint64_t buf_total_used;
- extern uint64_t buf_total_alloc;
- extern uint64_t rephist_total_alloc;
- extern uint32_t rephist_total_num;
-
log(severity, LD_GENERAL,
"In buffers: "U64_FORMAT" used/"U64_FORMAT" allocated (%d conns).",
U64_PRINTF_ARG(buf_total_used), U64_PRINTF_ARG(buf_total_alloc),
@@ -2143,6 +2143,7 @@ tor_main(int argc, char *argv[])
case CMD_VERIFY_CONFIG:
printf("Configuration was valid\n");
break;
+ case CMD_RUN_UNITTESTS:
default:
log_warn(LD_BUG,"Illegal command number %d: internal error.",
get_options()->command);