From 3ce871a338f7ac38cc0e32d25d05d20b9e464a10 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 21 Feb 2022 10:40:51 +0100 Subject: [PATCH] tree: Apply cosmetics --- mx_flock.c | 1 - mx_log.h | 2 +- mx_util.c | 1 - mxq_daemon.c | 1 - mxq_group.c | 2 -- mxqadmin.c | 2 -- mxqd.c | 1 - mxqdump.c | 3 +-- mxqkill.c | 2 -- mxqps.c | 1 - test_mx_mysql.c | 1 - test_mx_util.c | 1 - test_mxqd_control.c | 1 - 13 files changed, 2 insertions(+), 17 deletions(-) diff --git a/mx_flock.c b/mx_flock.c index 5f90999b..db630c21 100644 --- a/mx_flock.c +++ b/mx_flock.c @@ -1,4 +1,3 @@ - #define _GNU_SOURCE #include diff --git a/mx_log.h b/mx_log.h index 096f5652..0518b17c 100644 --- a/mx_log.h +++ b/mx_log.h @@ -53,7 +53,7 @@ int mx_log_level_get(void); int mx_log_level_mxlog_to_syslog(int level); int mx_log_level_syslog_to_mxlog(int level); -int mx_log_do(int level, char *file, unsigned long line, const char *func, const char *fmt, ...) __attribute__ ((format(printf, 5, 6)));; +int mx_log_do(int level, char *file, unsigned long line, const char *func, const char *fmt, ...) __attribute__ ((format(printf, 5, 6))); int mx_log_printf(const char *fmt, ...); int mx_log_finish(void); diff --git a/mx_util.c b/mx_util.c index c1d5f314..52e890de 100644 --- a/mx_util.c +++ b/mx_util.c @@ -1,4 +1,3 @@ - #define _GNU_SOURCE #include diff --git a/mxq_daemon.c b/mxq_daemon.c index 9fea495b..7ae01791 100644 --- a/mxq_daemon.c +++ b/mxq_daemon.c @@ -1,4 +1,3 @@ - #include #include diff --git a/mxq_group.c b/mxq_group.c index 3c849115..066eff38 100644 --- a/mxq_group.c +++ b/mxq_group.c @@ -1,4 +1,3 @@ - #include #include @@ -377,4 +376,3 @@ int mxq_load_running_groups_for_user(struct mx_mysql *mysql, struct mxq_group ** *mxq_groups = groups; return res; } - diff --git a/mxqadmin.c b/mxqadmin.c index 3702204f..713f209f 100644 --- a/mxqadmin.c +++ b/mxqadmin.c @@ -1,4 +1,3 @@ - #define _GNU_SOURCE #include @@ -400,4 +399,3 @@ int main(int argc, char *argv[]) mx_log_info("MySQL: Connection to database closed."); return 1; } - diff --git a/mxqd.c b/mxqd.c index 8918841e..6517f5f2 100644 --- a/mxqd.c +++ b/mxqd.c @@ -1,4 +1,3 @@ - #define _GNU_SOURCE #define MXQ_TYPE_SERVER diff --git a/mxqdump.c b/mxqdump.c index dae30a57..0e69b066 100644 --- a/mxqdump.c +++ b/mxqdump.c @@ -1,4 +1,3 @@ - #define _GNU_SOURCE #include @@ -813,4 +812,4 @@ int main(int argc, char *argv[]) mx_mysql_finish(&mysql); mx_log_info("MySQL: Connection to database closed."); return 0; -}; +} diff --git a/mxqkill.c b/mxqkill.c index 65d1e96a..af4b602b 100644 --- a/mxqkill.c +++ b/mxqkill.c @@ -1,4 +1,3 @@ - #define _GNU_SOURCE #include @@ -507,4 +506,3 @@ int main(int argc, char *argv[]) mx_log_info("MySQL: Connection to database closed."); return 1; } - diff --git a/mxqps.c b/mxqps.c index 2e956a85..ee21424a 100644 --- a/mxqps.c +++ b/mxqps.c @@ -1,4 +1,3 @@ - #include #include #include diff --git a/test_mx_mysql.c b/test_mx_mysql.c index 19579953..3d1d0c9f 100644 --- a/test_mx_mysql.c +++ b/test_mx_mysql.c @@ -1,4 +1,3 @@ - #include #include diff --git a/test_mx_util.c b/test_mx_util.c index 6b3c3d7d..e55d0070 100644 --- a/test_mx_util.c +++ b/test_mx_util.c @@ -1,4 +1,3 @@ - #define _GNU_SOURCE #include diff --git a/test_mxqd_control.c b/test_mxqd_control.c index 3fd27c1b..c8ba25b3 100644 --- a/test_mxqd_control.c +++ b/test_mxqd_control.c @@ -1,4 +1,3 @@ - #define _GNU_SOURCE #include