From 7393378841feabae1153a2fc0743bb7290860849 Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 22 Sep 2016 12:27:23 +0200 Subject: [PATCH] Get rid of hash_info array in data. context --- include/types.h | 6 ------ src/hash_management.c | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/include/types.h b/include/types.h index 73d1d2845..bff4d19ad 100644 --- a/include/types.h +++ b/include/types.h @@ -1060,12 +1060,6 @@ typedef struct double ms_paused; // timer on current dict - /** - * hash_info and username - */ - - hashinfo_t **hash_info; - } hc_global_data_t; #define RULES_MAX 256 diff --git a/src/hash_management.c b/src/hash_management.c index 6882d0717..ba398175e 100644 --- a/src/hash_management.c +++ b/src/hash_management.c @@ -164,7 +164,7 @@ void save_hash (const user_options_t *user_options, const hashconfig_t *hashconf { if (user_options->username == 1) { - user_t *user = data.hash_info[idx]->user; + user_t *user = hashes->hash_info[idx]->user; uint i;