aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-04-06 16:27:29 +0200
committerChristian Göttsche <cgzones@googlemail.com>2020-04-11 14:06:55 +0200
commit68bf28b3a15063bfddd3cf7fdd96b9d2def87b94 (patch)
tree2c524297631d2c0477ff70b811249677505d5b98
parent5c54ca768bef91fbf0978077d0255698034b9480 (diff)
downloadrspamd-68bf28b3a15063bfddd3cf7fdd96b9d2def87b94.tar.gz
rspamd-68bf28b3a15063bfddd3cf7fdd96b9d2def87b94.zip
[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 = { | ^~~~~
-rw-r--r--src/libserver/logger/logger_private.h6
1 files changed, 3 insertions, 3 deletions
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,