aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-05 14:43:15 +0200
committerChristian Grothoff <christian@grothoff.org>2019-10-05 14:43:15 +0200
commita16f6b613a10ed23099344611ff26844641fbee6 (patch)
treed12206670e001822b92df4f6e475dc7d8e5587dd
parent10079e7c8de9c5a8657adbe84022288c46706986 (diff)
downloadgnunet-a16f6b613a10ed23099344611ff26844641fbee6.tar.gz
gnunet-a16f6b613a10ed23099344611ff26844641fbee6.zip
style fix
-rw-r--r--src/util/crypto_ecc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index d954dfd98..9d141be2c 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -82,7 +82,6 @@ key_from_sexp(gcry_mpi_t *array,
82 gcry_sexp_t list; 82 gcry_sexp_t list;
83 gcry_sexp_t l2; 83 gcry_sexp_t l2;
84 const char *s; 84 const char *s;
85 unsigned int i;
86 unsigned int idx; 85 unsigned int idx;
87 86
88 list = gcry_sexp_find_token(sexp, topname, 0); 87 list = gcry_sexp_find_token(sexp, topname, 0);
@@ -100,7 +99,7 @@ key_from_sexp(gcry_mpi_t *array,
100 l2 = gcry_sexp_find_token(list, s, 1); 99 l2 = gcry_sexp_find_token(list, s, 1);
101 if (!l2) 100 if (!l2)
102 { 101 {
103 for (i = 0; i < idx; i++) 102 for (unsigned int i = 0; i < idx; i++)
104 { 103 {
105 gcry_free(array[i]); 104 gcry_free(array[i]);
106 array[i] = NULL; 105 array[i] = NULL;
@@ -112,7 +111,7 @@ key_from_sexp(gcry_mpi_t *array,
112 gcry_sexp_release(l2); 111 gcry_sexp_release(l2);
113 if (!array[idx]) 112 if (!array[idx])
114 { 113 {
115 for (i = 0; i < idx; i++) 114 for (unsigned int i = 0; i < idx; i++)
116 { 115 {
117 gcry_free(array[i]); 116 gcry_free(array[i]);
118 array[i] = NULL; 117 array[i] = NULL;