diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-26 10:49:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-26 10:49:23 +0100 |
commit | 537a7180a0d5132c11636c4fd8b1450cd99d352c (patch) | |
tree | fb9f8c84955a411bdffbd6371ea32f2716fb3687 /test/rspamd_mem_pool_test.c | |
parent | 5fd7a90fdaa33f52c59bdb0ca84451e5c1e22365 (diff) | |
download | rspamd-537a7180a0d5132c11636c4fd8b1450cd99d352c.tar.gz rspamd-537a7180a0d5132c11636c4fd8b1450cd99d352c.zip |
[Rework] Use clang-format to unify formatting in all sources
No meaningful changes.
Diffstat (limited to 'test/rspamd_mem_pool_test.c')
-rw-r--r-- | test/rspamd_mem_pool_test.c | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/test/rspamd_mem_pool_test.c b/test/rspamd_mem_pool_test.c index 156b913dc..fb3cf31e0 100644 --- a/test/rspamd_mem_pool_test.c +++ b/test/rspamd_mem_pool_test.c @@ -11,8 +11,7 @@ #define TEST_BUF "test buffer" #define TEST2_BUF "test buffertest buffer" -void -rspamd_mem_pool_test_func (void) +void rspamd_mem_pool_test_func(void) { rspamd_mempool_t *pool; rspamd_mempool_stat_t st; @@ -20,20 +19,19 @@ rspamd_mem_pool_test_func (void) pid_t pid; int ret; - pool = rspamd_mempool_new (sizeof (TEST_BUF), NULL, 0); - tmp = rspamd_mempool_alloc (pool, sizeof (TEST_BUF)); - tmp2 = rspamd_mempool_alloc (pool, sizeof (TEST_BUF) * 2); - tmp3 = rspamd_mempool_alloc_shared (pool, sizeof (TEST_BUF)); + pool = rspamd_mempool_new(sizeof(TEST_BUF), NULL, 0); + tmp = rspamd_mempool_alloc(pool, sizeof(TEST_BUF)); + tmp2 = rspamd_mempool_alloc(pool, sizeof(TEST_BUF) * 2); + tmp3 = rspamd_mempool_alloc_shared(pool, sizeof(TEST_BUF)); - snprintf (tmp, sizeof (TEST_BUF), "%s", TEST_BUF); - snprintf (tmp2, sizeof (TEST_BUF) * 2, "%s", TEST2_BUF); - snprintf (tmp3, sizeof (TEST_BUF), "%s", TEST_BUF); + snprintf(tmp, sizeof(TEST_BUF), "%s", TEST_BUF); + snprintf(tmp2, sizeof(TEST_BUF) * 2, "%s", TEST2_BUF); + snprintf(tmp3, sizeof(TEST_BUF), "%s", TEST_BUF); - g_assert (strncmp (tmp, TEST_BUF, sizeof (TEST_BUF)) == 0); - g_assert (strncmp (tmp2, TEST2_BUF, sizeof (TEST2_BUF)) == 0); - g_assert (strncmp (tmp3, TEST_BUF, sizeof (TEST_BUF)) == 0); - - rspamd_mempool_delete (pool); - rspamd_mempool_stat (&st); + g_assert(strncmp(tmp, TEST_BUF, sizeof(TEST_BUF)) == 0); + g_assert(strncmp(tmp2, TEST2_BUF, sizeof(TEST2_BUF)) == 0); + g_assert(strncmp(tmp3, TEST_BUF, sizeof(TEST_BUF)) == 0); + rspamd_mempool_delete(pool); + rspamd_mempool_stat(&st); } |