diff --git a/src/dispatch.c b/src/dispatch.c index 846ae41e0..b026a2af1 100644 --- a/src/dispatch.c +++ b/src/dispatch.c @@ -44,7 +44,7 @@ static u64 get_lowest_words_done (const hashcat_ctx_t *hashcat_ctx) { hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; const u64 words_done = device_param->words_done; diff --git a/src/hashcat.c b/src/hashcat.c index d62432a26..565bba124 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -633,7 +633,7 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx) { device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; break; } diff --git a/src/hwmon.c b/src/hwmon.c index b74643841..24513a0f4 100644 --- a/src/hwmon.c +++ b/src/hwmon.c @@ -3489,7 +3489,7 @@ int hwmon_ctx_init (hashcat_ctx_t *hashcat_ctx) { hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; if ((device_param->device_type & CL_DEVICE_TYPE_GPU) == 0) continue; @@ -3539,7 +3539,7 @@ int hwmon_ctx_init (hashcat_ctx_t *hashcat_ctx) { hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; if ((opencl_ctx->devices_param[device_id].device_type & CL_DEVICE_TYPE_GPU) == 0) continue; @@ -3758,7 +3758,7 @@ int hwmon_ctx_init (hashcat_ctx_t *hashcat_ctx) { hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; if ((opencl_ctx->devices_param[device_id].device_type & CL_DEVICE_TYPE_GPU) == 0) continue; @@ -3839,7 +3839,7 @@ void hwmon_ctx_destroy (hashcat_ctx_t *hashcat_ctx) { hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; if ((opencl_ctx->devices_param[device_id].device_type & CL_DEVICE_TYPE_GPU) == 0) continue; @@ -3885,7 +3885,7 @@ void hwmon_ctx_destroy (hashcat_ctx_t *hashcat_ctx) { hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; if ((opencl_ctx->devices_param[device_id].device_type & CL_DEVICE_TYPE_GPU) == 0) continue; diff --git a/src/monitor.c b/src/monitor.c index 799ece4bd..1cfa1cb2c 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -125,7 +125,7 @@ static int monitor (hashcat_ctx_t *hashcat_ctx) { hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; const int rc_throttle = hm_get_throttle_with_device_id (hashcat_ctx, device_id); @@ -164,7 +164,7 @@ static int monitor (hashcat_ctx_t *hashcat_ctx) { hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; if ((opencl_ctx->devices_param[device_id].device_type & CL_DEVICE_TYPE_GPU) == 0) continue; diff --git a/src/opencl.c b/src/opencl.c index fc6c167ef..c8fa1ffb6 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -2968,7 +2968,7 @@ void opencl_ctx_devices_destroy (hashcat_ctx_t *hashcat_ctx) { hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; hcfree (device_param->device_name); hcfree (device_param->device_name_chksum); @@ -3043,7 +3043,7 @@ void opencl_ctx_devices_kernel_loops (hashcat_ctx_t *hashcat_ctx) { hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; if (device_param->kernel_loops_min < device_param->kernel_loops_max) { @@ -3146,7 +3146,7 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx) hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; #if defined(__APPLE__) /** @@ -4746,7 +4746,7 @@ void opencl_session_destroy (hashcat_ctx_t *hashcat_ctx) { hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; hcfree (device_param->pws_buf); hcfree (device_param->combs_buf); @@ -4868,7 +4868,7 @@ void opencl_session_reset (hashcat_ctx_t *hashcat_ctx) { hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; device_param->speed_pos = 0; @@ -4910,7 +4910,7 @@ int opencl_session_update_combinator (hashcat_ctx_t *hashcat_ctx) { hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; // kernel_params @@ -4951,7 +4951,7 @@ int opencl_session_update_mp (hashcat_ctx_t *hashcat_ctx) { hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; device_param->kernel_params_mp_buf64[3] = 0; device_param->kernel_params_mp_buf32[4] = mask_ctx->css_cnt; @@ -4979,7 +4979,7 @@ int opencl_session_update_mp_rl (hashcat_ctx_t *hashcat_ctx, const u32 css_cnt_l { hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id]; - if (device_param->skipped) continue; + if (device_param->skipped == true) continue; device_param->kernel_params_mp_l_buf64[3] = 0; device_param->kernel_params_mp_l_buf32[4] = css_cnt_l;