]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix compiler warnings in src/libutil/util.c 3902/head
authorAnton Yuzhaninov <citrin+git@citrin.ru>
Tue, 21 Sep 2021 09:28:43 +0000 (10:28 +0100)
committerAnton Yuzhaninov <citrin+git@citrin.ru>
Tue, 21 Sep 2021 09:28:43 +0000 (10:28 +0100)
src/libutil/util.c:1362:7: warning: unused variable 'len' [-Wunused-variable]
        gint len = 0;
             ^
src/libutil/util.c:1363:8: warning: unused variable 'pass' [-Wunused-variable]
        gchar pass[BUFSIZ];
              ^
2 warnings generated.

src/libutil/util.c

index d1cc65c1c729db0e3b3279bc97b3c36f6c381596..27631ae65ae299ae52bdfbf690e7cfd05b741d5f 100644 (file)
@@ -1359,9 +1359,6 @@ gint
 rspamd_read_passphrase (gchar *buf, gint size, gint rwflag, gpointer key)
 {
 #ifdef HAVE_READPASSPHRASE_H
-       gint len = 0;
-       gchar pass[BUFSIZ];
-
        if (readpassphrase ("Enter passphrase: ", buf, size, RPP_ECHO_OFF |
                RPP_REQUIRE_TTY) == NULL) {
                return 0;
@@ -2459,4 +2456,4 @@ rspamd_ptr_array_shuffle (GPtrArray *ar)
                g_ptr_array_index (ar, j) = g_ptr_array_index (ar, i);
                g_ptr_array_index (ar, i) = t;
        }
-}
\ No newline at end of file
+}