From fb749199db3ecc2edf10e25ce15f9ff83255bdd6 Mon Sep 17 00:00:00 2001 From: Karel Miko Date: Mon, 6 Mar 2017 19:51:46 +0100 Subject: [PATCH] moving declaration to block beginning --- src/misc/crypt/crypt_constants.c | 4 ++-- src/misc/crypt/crypt_sizes.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/misc/crypt/crypt_constants.c b/src/misc/crypt/crypt_constants.c index 03755b0..68e9aae 100755 --- a/src/misc/crypt/crypt_constants.c +++ b/src/misc/crypt/crypt_constants.c @@ -182,7 +182,7 @@ int crypt_get_constant(const char* namein, int *valueout) { int crypt_list_all_constants(char *names_list, unsigned int *names_list_size) { int i; unsigned int total_len = 0; - char number[32]; + char number[32], *ptr; int number_len; int count = sizeof(_crypt_constants) / sizeof(_crypt_constants[0]); @@ -205,7 +205,7 @@ int crypt_list_all_constants(char *names_list, unsigned int *names_list_size) { return -1; } /* build the names list */ - char *ptr = names_list; + ptr = names_list; for (i=0; i