]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove unused variables 4591/head
authorLinus Nordberg <linus@nordberg.se>
Fri, 8 Sep 2023 10:05:12 +0000 (12:05 +0200)
committerLinus Nordberg <linus@nordberg.se>
Fri, 8 Sep 2023 10:05:12 +0000 (12:05 +0200)
src/libutil/mem_pool.c
src/rspamadm/pw.c
test/rspamd_mem_pool_test.c
test/rspamd_radix_test.c

index 02b5ed3c4ac3c2cdf2b509394c14f352f473a87a..39bc79f255c9ecfa6687a4814524c1c24e4a295a 100644 (file)
@@ -284,8 +284,6 @@ rspamd_mempool_new_(gsize size, const gchar *tag, gint flags, const gchar *loc)
 {
        rspamd_mempool_t *new_pool;
        gpointer map;
-       const gchar hexdigits[] = "0123456789abcdef";
-       unsigned i;
 
        /* Allocate statistic structure if it is not allocated before */
        if (mem_pool_stat == NULL) {
@@ -1301,4 +1299,4 @@ gsize rspamd_mempool_get_used_size(rspamd_mempool_t *pool)
 gsize rspamd_mempool_get_wasted_size(rspamd_mempool_t *pool)
 {
        return pool->priv->wasted_memory;
-}
\ No newline at end of file
+}
index db1df73444e11069ca65855b8730a18532c008ca..9fe9cd7549da1fd7e375b60f7d36bec3a4d6675e 100644 (file)
@@ -187,7 +187,7 @@ rspamadm_pw_check(void)
        guchar *salt_decoded, *key_decoded, *local_key;
        gsize salt_len, key_len, size;
        gchar test_password[8192], encrypted_password[8192];
-       gsize plen, term = 0, i;
+       gsize plen, i;
        gint id;
        gboolean ret = FALSE;
 
index fb3cf31e004deffa2c398c5eac9fbb76b7a0e809..626cc078b1913cc4a918b18eb376ba37e92d0501 100644 (file)
@@ -16,8 +16,6 @@ void rspamd_mem_pool_test_func(void)
        rspamd_mempool_t *pool;
        rspamd_mempool_stat_t st;
        char *tmp, *tmp2, *tmp3;
-       pid_t pid;
-       int ret;
 
        pool = rspamd_mempool_new(sizeof(TEST_BUF), NULL, 0);
        tmp = rspamd_mempool_alloc(pool, sizeof(TEST_BUF));
index 426eb1f54ea328c3b7da9989842d4d628a6a2570..8d31dc1690fbc0ce1daa427d08876afa40668224 100644 (file)
@@ -206,7 +206,6 @@ void rspamd_radix_test_func(void)
 {
        struct btrie *btrie;
        rspamd_mempool_t *pool;
-       radix_compressed_t *comp_tree = radix_create_compressed(NULL);
        struct {
                guint32 addr;
                guint32 mask;