* the syscall table(s). This table is generated by makesyscalls.sh
* from syscalls.master and stored in audit_kevents.c.
*/
- if (code > NUM_SYSENT)
+ if (code > nsysent)
return;
event = sys_au_event[code];
if (event == AUE_NULL)
return (audit_enabled && currecord() != NULL);
}
+#if CONFIG_COREDUMP
void
audit_proc_coredump(proc_t proc, char *path, int errcode)
{
ret = 1;
audit_commit(ar, errcode, ret);
}
+#endif /* CONFIG_COREDUMP */
#endif /* CONFIG_AUDIT */