1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-30 03:48:17 +00:00

Fix coding convention

This commit is contained in:
Jens Steube 2022-02-04 10:28:45 +01:00
parent edae3db725
commit 8293964097

View File

@ -6755,11 +6755,10 @@ static bool load_kernel (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_p
hc_asprintf (&nvrtc_options[3], "compute_%d%d", device_param->sm_major, device_param->sm_minor); hc_asprintf (&nvrtc_options[3], "compute_%d%d", device_param->sm_major, device_param->sm_minor);
// untested on windows, but it should work // untested on windows, but it should work
hc_asprintf (&nvrtc_options[4], "-D INCLUDE_PATH=%s",
#if defined (_WIN) || defined (__CYGWIN__) || defined (__MSYS__) #if defined (_WIN) || defined (__CYGWIN__) || defined (__MSYS__)
"OpenCL"); hc_asprintf (&nvrtc_options[4], "-D INCLUDE_PATH=%s", "OpenCL");
#else #else
folder_config->cpath_real); hc_asprintf (&nvrtc_options[4], "-D INCLUDE_PATH=%s", folder_config->cpath_real);
#endif #endif
char *nvrtc_options_string = hcstrdup (build_options_buf); char *nvrtc_options_string = hcstrdup (build_options_buf);
@ -7008,11 +7007,10 @@ static bool load_kernel (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_p
hiprtc_options[4] = ""; hiprtc_options[4] = "";
// untested but it should work // untested but it should work
hc_asprintf (&hiprtc_options[5], "-D INCLUDE_PATH=%s",
#if defined (_WIN) || defined (__CYGWIN__) || defined (__MSYS__) #if defined (_WIN) || defined (__CYGWIN__) || defined (__MSYS__)
"OpenCL"); hc_asprintf (&hiprtc_options[5], "-D INCLUDE_PATH=%s", "OpenCL");
#else #else
folder_config->cpath_real); hc_asprintf (&hiprtc_options[5], "-D INCLUDE_PATH=%s", folder_config->cpath_real);
#endif #endif
char *hiprtc_options_string = hcstrdup (build_options_buf); char *hiprtc_options_string = hcstrdup (build_options_buf);
@ -8063,11 +8061,10 @@ int backend_session_begin (hashcat_ctx_t *hashcat_ctx)
{ {
// tested on windows, linux, apple intel, apple silicon // tested on windows, linux, apple intel, apple silicon
// when is builded with cygwin and msys, cpath_real doesn't work // when is builded with cygwin and msys, cpath_real doesn't work
build_options_len += snprintf (build_options_buf + build_options_len, build_options_sz - build_options_len, "-D KERNEL_STATIC -D INCLUDE_PATH=\"%s\" ",
#if defined (_WIN) || defined (__CYGWIN__) || defined (__MSYS__) #if defined (_WIN) || defined (__CYGWIN__) || defined (__MSYS__)
"OpenCL"); build_options_len += snprintf (build_options_buf + build_options_len, build_options_sz - build_options_len, "-D KERNEL_STATIC -D INCLUDE_PATH=\"%s\" ", "OpenCL");
#else #else
folder_config->cpath_real); build_options_len += snprintf (build_options_buf + build_options_len, build_options_sz - build_options_len, "-D KERNEL_STATIC -D INCLUDE_PATH=\"%s\" ", folder_config->cpath_real);
#endif #endif
#if defined (__APPLE__) #if defined (__APPLE__)