]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
This stats_n_seconds_working variable needs to be static now.
authorNick Mathewson <nickm@torproject.org>
Fri, 16 Feb 2018 01:26:09 +0000 (20:26 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 16 Feb 2018 01:26:09 +0000 (20:26 -0500)
(When a variable isn't going to be declared extern in the header, we
require that it be static.)

src/or/main.c

index 5583f370faba006ec3518b526b6a714e0b81c95e..7276917e437f62a95818ff94de055cab7c3dc6db 100644 (file)
@@ -179,7 +179,7 @@ static uint64_t stats_n_bytes_written = 0;
 /** What time did this process start up? */
 time_t time_of_process_start = 0;
 /** How many seconds have we been running? */
-long stats_n_seconds_working = 0;
+static long stats_n_seconds_working = 0;
 /** How many times have we returned from the main loop successfully? */
 static uint64_t stats_n_main_loop_successes = 0;
 /** How many times have we received an error from the main loop? */