aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-09-21 12:28:18 +0100
committerGitHub <noreply@github.com>2021-09-21 12:28:18 +0100
commit001881829f73a870d3dfbb7747c9da84c8359f36 (patch)
treef2db25c5eaa581ce8e1ef7e04b11269300385134
parent384e037f52b933fdd3cb84966208f8e658212ffe (diff)
parentc961731c94d13a96ac94237c945357beb9217499 (diff)
downloadrspamd-001881829f73a870d3dfbb7747c9da84c8359f36.tar.gz
rspamd-001881829f73a870d3dfbb7747c9da84c8359f36.zip
Merge pull request #3902 from citrin/warnings
[Minor] Fix compiler warnings in src/libutil/util.c
-rw-r--r--src/libutil/util.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c
index d1cc65c1c..27631ae65 100644
--- a/src/libutil/util.c
+++ b/src/libutil/util.c
@@ -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
+}