aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-02-15 20:26:09 -0500
committerNick Mathewson <nickm@torproject.org>2018-02-15 20:26:09 -0500
commit066a15af635b1e75476834812f6a326eecf9aa98 (patch)
treeb913eb8ea0823b7517d3cb9d9fae546d56b8974b /src
parent3ca04aada2916ce6963358007476eccd851e67cc (diff)
downloadtor-066a15af635b1e75476834812f6a326eecf9aa98.tar.gz
tor-066a15af635b1e75476834812f6a326eecf9aa98.zip
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.)
Diffstat (limited to 'src')
-rw-r--r--src/or/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 5583f370fa..7276917e43 100644
--- a/src/or/main.c
+++ b/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? */