From 8c52967c1ca5eff4aeb6e4452b8958b73240b133 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 5 Oct 2019 14:45:20 +0200 Subject: [PATCH] reduce scope --- src/util/crypto_ecc.c | 3 +-- 1 file changed, 1 insertion(+), 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) -- 2.25.1