Browse Source

This stats_n_seconds_working variable needs to be static now.

(When a variable isn't going to be declared extern in the header, we
require that it be static.)
Nick Mathewson 6 years ago
parent
commit
066a15af63
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/main.c

+ 1 - 1
src/or/main.c

@@ -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? */