summaryrefslogtreecommitdiff
path: root/other/bootstrap_daemon
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-09-22 13:13:29 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-09-24 20:52:09 +0100
commit0d347c2b2e69aa09b079f6daaa00007fef4fe52f (patch)
treeb5a7be0fa38218268fa08e2adf4c174be2349137 /other/bootstrap_daemon
parentb588e0fdd307632eaa027db31aa8c11a14c99cef (diff)
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`.
Diffstat (limited to 'other/bootstrap_daemon')
-rw-r--r--other/bootstrap_daemon/src/log.c2
1 files changed, 1 insertions, 1 deletions
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 @@
31#include <stdarg.h> 31#include <stdarg.h>
32#include <stdio.h> 32#include <stdio.h>
33 33
34LOG_BACKEND current_backend = -1; 34static LOG_BACKEND current_backend = -1;
35 35
36bool open_log(LOG_BACKEND backend) 36bool open_log(LOG_BACKEND backend)
37{ 37{