diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-08-12 11:35:01 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-08-12 14:09:59 +0000 |
commit | d92c96e7832ae4c7f9c32eec0d2f7f661a65b73e (patch) | |
tree | f7577121b3463ad094493fbb0cf3601fbcb0f9dc /other/bootstrap_daemon/src/log_backend_syslog.h | |
parent | f0f456398da65fc36837c0ab66b983a69b6f9e3e (diff) |
Fix a few warnings from clang.
Also remove the use of a VLA in a context where there can be unbounded
memory allocations.
Diffstat (limited to 'other/bootstrap_daemon/src/log_backend_syslog.h')
-rw-r--r-- | other/bootstrap_daemon/src/log_backend_syslog.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/other/bootstrap_daemon/src/log_backend_syslog.h b/other/bootstrap_daemon/src/log_backend_syslog.h index f09b0431..5e9a3069 100644 --- a/other/bootstrap_daemon/src/log_backend_syslog.h +++ b/other/bootstrap_daemon/src/log_backend_syslog.h | |||
@@ -31,6 +31,6 @@ | |||
31 | 31 | ||
32 | void log_backend_syslog_open(void); | 32 | void log_backend_syslog_open(void); |
33 | void log_backend_syslog_close(void); | 33 | void log_backend_syslog_close(void); |
34 | void log_backend_syslog_write(LOG_LEVEL level, const char *format, va_list args); | 34 | void log_backend_syslog_write(LOG_LEVEL level, const char *format, va_list args) GNU_PRINTF(2, 0); |
35 | 35 | ||
36 | #endif // LOG_BACKEND_SYSLOG_H | 36 | #endif // LOG_BACKEND_SYSLOG_H |