From 5efcf2dcb909952bcadad08cd1f9f6ebc36b9e49 Mon Sep 17 00:00:00 2001 From: jsteube Date: Wed, 21 Sep 2016 21:18:43 +0200 Subject: [PATCH] Get rid of powertune_enable variable in main --- src/hashcat.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/hashcat.c b/src/hashcat.c index 83e4e48e0..83c0c0d98 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -407,14 +407,10 @@ int main (int argc, char **argv) uint rp_gen_func_max = RP_GEN_FUNC_MAX; char *truecrypt_keyfiles = NULL; char *veracrypt_keyfiles = NULL; - #if defined (HAVE_HWMON) - uint powertune_enable = POWERTUNE_ENABLE; - #endif uint segment_size = SEGMENT_SIZE; if (1) { - powertune_enable = user_options->powertune_enable; rp_gen_func_max = user_options->rp_gen_func_max; rp_gen_func_min = user_options->rp_gen_func_min; rp_gen = user_options->rp_gen; @@ -1710,7 +1706,7 @@ int main (int argc, char **argv) * powertune on user request */ - if (powertune_enable == 1) + if (user_options->powertune_enable == true) { hc_thread_mutex_lock (mux_hwmon); @@ -4114,7 +4110,7 @@ int main (int argc, char **argv) // reset power tuning - if (powertune_enable == 1) + if (user_options->powertune_enable == true) { hc_thread_mutex_lock (mux_hwmon);