summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-05 14:45:20 +0200
committerChristian Grothoff <christian@grothoff.org>2019-10-05 14:45:20 +0200
commit8c52967c1ca5eff4aeb6e4452b8958b73240b133 (patch)
treeee296d514db65df3b00f1d667fcdcc0e34f59a7e /src
parent6ecb8bb63d92da4f603cb2b73695240cfb8cea46 (diff)
reduce scope
Diffstat (limited to 'src')
-rw-r--r--src/util/crypto_ecc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index 9d141be2c..fed7c9ece 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -81,7 +81,6 @@ key_from_sexp(gcry_mpi_t *array,
{
gcry_sexp_t list;
gcry_sexp_t l2;
- const char *s;
unsigned int idx;
list = gcry_sexp_find_token(sexp, topname, 0);
@@ -94,7 +93,7 @@ key_from_sexp(gcry_mpi_t *array,
return 2;
idx = 0;
- for (s = elems; *s; s++, idx++)
+ for (const char *s = elems; *s; s++, idx++)
{
l2 = gcry_sexp_find_token(list, s, 1);
if (!l2)