replace index with strchr

The former is deprecated and unavailable if POSIX_C_SOUCE==200811L.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
pull/3798/head
Rosen Penev 6 months ago
parent fafb277e07
commit a381539545

@ -7472,11 +7472,11 @@ int backend_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
#if defined (__APPLE__)
char *start130 = index (device_param->opencl_driver_version, '(');
char *stop130 = index (device_param->opencl_driver_version, ')');
char *start130 = strchr (device_param->opencl_driver_version, '(');
char *stop130 = strchr (device_param->opencl_driver_version, ')');
char *start131 = index (opencl_platform_version, '(');
char *stop131 = index (opencl_platform_version, ')');
char *start131 = strchr (opencl_platform_version, '(');
char *stop131 = strchr (opencl_platform_version, ')');
// either none or one of these have a date string

Loading…
Cancel
Save