diff options
Diffstat (limited to 'bin/auditd/auditd_darwin.c')
-rw-r--r-- | bin/auditd/auditd_darwin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/auditd/auditd_darwin.c b/bin/auditd/auditd_darwin.c index fbf99d822096b..8530185e4a90b 100644 --- a/bin/auditd/auditd_darwin.c +++ b/bin/auditd/auditd_darwin.c @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2004-2008 Apple Inc. + * Copyright (c) 2004-2009 Apple Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd_darwin.c#3 $ + * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd_darwin.c#5 $ */ #include <sys/types.h> @@ -178,9 +178,9 @@ auditd_log_debug(const char *fmt, ...) static void init_audit_state(void) { - long au_cond; + int au_cond; - if (auditon(A_GETCOND, &au_cond, sizeof(long)) < 0) { + if (audit_get_cond(&au_cond) < 0) { if (errno != ENOSYS) { auditd_log_err("Audit status check failed (%s)", strerror(errno)); |