From: Christian Göttsche Date: Mon, 6 Apr 2020 14:27:29 +0000 (+0200) Subject: [Minor] move static keyword to beginning of function declarations X-Git-Tag: 2.6~531^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=68bf28b3a15063bfddd3cf7fdd96b9d2def87b94;p=rspamd.git [Minor] move static keyword to beginning of function declarations In file included from ../src/libserver/logger/logger_file.c:23: ../src/libserver/logger/logger_private.h:106:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] 106 | const static struct rspamd_logger_funcs file_log_funcs = { | ^~~~~ ../src/libserver/logger/logger_private.h:130:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] 130 | const static struct rspamd_logger_funcs syslog_log_funcs = { | ^~~~~ ../src/libserver/logger/logger_private.h:154:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] 154 | const static struct rspamd_logger_funcs console_log_funcs = { | ^~~~~ --- diff --git a/src/libserver/logger/logger_private.h b/src/libserver/logger/logger_private.h index 5fc258914..79831f2ee 100644 --- a/src/libserver/logger/logger_private.h +++ b/src/libserver/logger/logger_private.h @@ -103,7 +103,7 @@ bool rspamd_log_file_log (const gchar *module, const gchar *id, bool rspamd_log_file_on_fork (rspamd_logger_t *logger, struct rspamd_config *cfg, gpointer arg, GError **err); -const static struct rspamd_logger_funcs file_log_funcs = { +static const struct rspamd_logger_funcs file_log_funcs = { .init = rspamd_log_file_init, .dtor = rspamd_log_file_dtor, .reload = rspamd_log_file_reload, @@ -127,7 +127,7 @@ bool rspamd_log_syslog_log (const gchar *module, const gchar *id, rspamd_logger_t *rspamd_log, gpointer arg); -const static struct rspamd_logger_funcs syslog_log_funcs = { +static const struct rspamd_logger_funcs syslog_log_funcs = { .init = rspamd_log_syslog_init, .dtor = rspamd_log_syslog_dtor, .reload = rspamd_log_syslog_reload, @@ -151,7 +151,7 @@ bool rspamd_log_console_log (const gchar *module, const gchar *id, rspamd_logger_t *rspamd_log, gpointer arg); -const static struct rspamd_logger_funcs console_log_funcs = { +static const struct rspamd_logger_funcs console_log_funcs = { .init = rspamd_log_console_init, .dtor = rspamd_log_console_dtor, .reload = rspamd_log_console_reload,