mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Fix typo and make clearer the intent by using defined(). See #198.
This commit is contained in:
@@ -972,7 +972,7 @@ static void hook_insert_error_filter(request_rec *r) {
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef NO_MODSEC_API
|
||||
#if (!defined(NO_MODSEC_API))
|
||||
/**
|
||||
* This function is exported for other Apache modules to
|
||||
* register new transformation functions.
|
||||
@@ -1033,7 +1033,7 @@ static void register_hooks(apr_pool_t *mp) {
|
||||
NULL
|
||||
};
|
||||
|
||||
#ifdef NO_MODSEC_API
|
||||
#if (!defined(NO_MODSEC_API))
|
||||
/* Export optional functions. */
|
||||
APR_REGISTER_OPTIONAL_FN(modsec_register_tfn);
|
||||
APR_REGISTER_OPTIONAL_FN(modsec_register_operator);
|
||||
|
Reference in New Issue
Block a user