mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-29 19:38:18 +00:00
Run through Clang's bugprone-macro-parentheses
This commit is contained in:
parent
6dc72ebcc5
commit
dca1a86315
@ -921,14 +921,14 @@ int cuda_init (hashcat_ctx_t *hashcat_ctx)
|
||||
if (cuda->lib == NULL) return -1;
|
||||
|
||||
#define HC_LOAD_FUNC_CUDA(ptr,name,cudaname,type,libname,noerr) \
|
||||
ptr->name = (type) hc_dlsym (ptr->lib, #cudaname); \
|
||||
if (noerr != -1) { \
|
||||
if (!ptr->name) { \
|
||||
if (noerr == 1) { \
|
||||
ptr->name = (type) hc_dlsym ((ptr)->lib, #cudaname); \
|
||||
if ((noerr) != -1) { \
|
||||
if (!(ptr)->name) { \
|
||||
if ((noerr) == 1) { \
|
||||
event_log_error (hashcat_ctx, "%s is missing from %s shared library.", #name, #libname); \
|
||||
return -1; \
|
||||
} \
|
||||
if (noerr != 1) { \
|
||||
if ((noerr) != 1) { \
|
||||
event_log_warning (hashcat_ctx, "%s is missing from %s shared library.", #name, #libname); \
|
||||
return 0; \
|
||||
} \
|
||||
|
@ -132,7 +132,7 @@ int hashconfig_init (hashcat_ctx_t *hashcat_ctx)
|
||||
// check for missing pointer assignements
|
||||
|
||||
#define CHECK_DEFINED(func) \
|
||||
if (func == NULL) \
|
||||
if ((func) == NULL) \
|
||||
{ \
|
||||
event_log_error (hashcat_ctx, "Missing symbol definitions. Old template?"); \
|
||||
\
|
||||
@ -211,7 +211,7 @@ int hashconfig_init (hashcat_ctx_t *hashcat_ctx)
|
||||
// mandatory functions check
|
||||
|
||||
#define CHECK_MANDATORY(func) \
|
||||
if (func == MODULE_DEFAULT) \
|
||||
if ((func) == MODULE_DEFAULT) \
|
||||
{ \
|
||||
event_log_error (hashcat_ctx, "Missing mandatory symbol definitions"); \
|
||||
\
|
||||
|
Loading…
Reference in New Issue
Block a user