mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fix warnings on Solaris and/or 64bit builds.
This commit is contained in:
@@ -449,7 +449,7 @@ static int hook_post_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_t
|
||||
|
||||
if (first_time == 0) {
|
||||
ap_log_error(APLOG_MARK, APLOG_NOTICE | APLOG_NOERRNO, 0, s,
|
||||
"ModSecurity: chroot checkpoint #2 (pid=%d ppid=%d)", getpid(), getppid());
|
||||
"ModSecurity: chroot checkpoint #2 (pid=%d ppid=%d)", (int)getpid(), (int)getppid());
|
||||
|
||||
if (chdir(chroot_dir) < 0) {
|
||||
ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, s,
|
||||
@@ -478,7 +478,7 @@ static int hook_post_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_t
|
||||
"ModSecurity: chroot successful, path=%s", chroot_dir);
|
||||
} else {
|
||||
ap_log_error(APLOG_MARK, APLOG_NOTICE | APLOG_NOERRNO, 0, s,
|
||||
"ModSecurity: chroot checkpoint #1 (pid=%d ppid=%d)", getpid(), getppid());
|
||||
"ModSecurity: chroot checkpoint #1 (pid=%d ppid=%d)", (int)getpid(), (int)getppid());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -986,7 +986,7 @@ static void hook_insert_error_filter(request_rec *r) {
|
||||
*/
|
||||
static void modsec_register_tfn(const char *name, void *fn) {
|
||||
if (modsecurity != NULL) {
|
||||
msre_engine_tfn_register(modsecurity->msre, name, fn);
|
||||
msre_engine_tfn_register(modsecurity->msre, name, (fn_tfn_execute_t)fn);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -996,7 +996,7 @@ static void modsec_register_tfn(const char *name, void *fn) {
|
||||
*/
|
||||
static void modsec_register_operator(const char *name, void *fn_init, void *fn_exec) {
|
||||
if (modsecurity != NULL) {
|
||||
msre_engine_op_register(modsecurity->msre, name, fn_init, fn_exec);
|
||||
msre_engine_op_register(modsecurity->msre, name, (fn_op_param_init_t)fn_init, (fn_op_execute_t)fn_exec);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user