From 0d347c2b2e69aa09b079f6daaa00007fef4fe52f Mon Sep 17 00:00:00 2001 From: iphydf Date: Thu, 22 Sep 2016 13:13:29 +0100 Subject: Minor cleanups: unused vars, unreachable code, static globals. - All global variables should be static unless they have an explicit extern declaration in a header file. - `to_compare` was not used in encryptsave and toxav tests. - `break` in switch cases is not required directly after `return`, `goto`, or a noreturn function like `abort`. --- other/bootstrap_daemon/src/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'other/bootstrap_daemon/src') diff --git a/other/bootstrap_daemon/src/log.c b/other/bootstrap_daemon/src/log.c index e0fb3b33..2eae3286 100644 --- a/other/bootstrap_daemon/src/log.c +++ b/other/bootstrap_daemon/src/log.c @@ -31,7 +31,7 @@ #include #include -LOG_BACKEND current_backend = -1; +static LOG_BACKEND current_backend = -1; bool open_log(LOG_BACKEND backend) { -- cgit v1.2.3