aboutsummaryrefslogtreecommitdiffstats
path: root/test/rspamd_cxx_unit.cxx
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-07-26 10:49:23 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-07-26 10:49:23 +0100
commit537a7180a0d5132c11636c4fd8b1450cd99d352c (patch)
treefb9f8c84955a411bdffbd6371ea32f2716fb3687 /test/rspamd_cxx_unit.cxx
parent5fd7a90fdaa33f52c59bdb0ca84451e5c1e22365 (diff)
downloadrspamd-537a7180a0d5132c11636c4fd8b1450cd99d352c.tar.gz
rspamd-537a7180a0d5132c11636c4fd8b1450cd99d352c.zip
[Rework] Use clang-format to unify formatting in all sources
No meaningful changes.
Diffstat (limited to 'test/rspamd_cxx_unit.cxx')
-rw-r--r--test/rspamd_cxx_unit.cxx17
1 files changed, 8 insertions, 9 deletions
diff --git a/test/rspamd_cxx_unit.cxx b/test/rspamd_cxx_unit.cxx
index acbbbabce..3dde89d1c 100644
--- a/test/rspamd_cxx_unit.cxx
+++ b/test/rspamd_cxx_unit.cxx
@@ -27,15 +27,14 @@
static gboolean verbose = false;
static const GOptionEntry entries[] =
- {
- {"verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose,
- "Enable verbose logging", NULL},
- {NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL}
- };
+ {
+ {"verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose,
+ "Enable verbose logging", NULL},
+ {NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL}};
-int
-main(int argc, char **argv) {
+int main(int argc, char **argv)
+{
struct rspamd_main *rspamd_main;
rspamd_mempool_t *pool;
struct rspamd_config *cfg;
@@ -64,13 +63,13 @@ main(int argc, char **argv) {
if (verbose) {
rspamd_main->logger = rspamd_log_open_emergency(rspamd_main->server_pool,
- RSPAMD_LOG_FLAG_USEC | RSPAMD_LOG_FLAG_ENFORCED | RSPAMD_LOG_FLAG_RSPAMADM);
+ RSPAMD_LOG_FLAG_USEC | RSPAMD_LOG_FLAG_ENFORCED | RSPAMD_LOG_FLAG_RSPAMADM);
rspamd_log_set_log_level(rspamd_main->logger, G_LOG_LEVEL_DEBUG);
}
else {
rspamd_main->logger = rspamd_log_open_emergency(rspamd_main->server_pool,
- RSPAMD_LOG_FLAG_RSPAMADM);
+ RSPAMD_LOG_FLAG_RSPAMADM);
rspamd_log_set_log_level(rspamd_main->logger, G_LOG_LEVEL_MESSAGE);
}