diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-09-22 13:13:29 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-09-24 20:52:09 +0100 |
commit | 0d347c2b2e69aa09b079f6daaa00007fef4fe52f (patch) | |
tree | b5a7be0fa38218268fa08e2adf4c174be2349137 /other/bootstrap_daemon | |
parent | b588e0fdd307632eaa027db31aa8c11a14c99cef (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.c | 2 |
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 | ||
34 | LOG_BACKEND current_backend = -1; | 34 | static LOG_BACKEND current_backend = -1; |
35 | 35 | ||
36 | bool open_log(LOG_BACKEND backend) | 36 | bool open_log(LOG_BACKEND backend) |
37 | { | 37 | { |