]> git.saurik.com Git - apple/shell_cmds.git/blobdiff - id/id.c
shell_cmds-162.tar.gz
[apple/shell_cmds.git] / id / id.c
diff --git a/id/id.c b/id/id.c
index 5bdb99c772459e2b178fff0e7f545883fd1b5bf5..5c5647f9ea0f578ce1bbbf3b5114cf2b63ec2664 100644 (file)
--- a/id/id.c
+++ b/id/id.c
@@ -347,14 +347,14 @@ id_print(struct passwd *pw, int use_ggl, int p_euid, int p_egid)
 void
 auditid(void)
 {
-       auditinfo_t auditinfo;
+       auditinfo_addr_t auditinfo;
 
-       if (getaudit(&auditinfo) < 0)
+       if (getaudit_addr(&auditinfo, sizeof(auditinfo)) < 0)
                err(1, "getaudit");
        printf("auid=%d\n", auditinfo.ai_auid);
        printf("mask.success=0x%08x\n", auditinfo.ai_mask.am_success);
        printf("mask.failure=0x%08x\n", auditinfo.ai_mask.am_failure);
-       printf("termid.port=0x%08x\n", auditinfo.ai_termid.port);
+       printf("termid.port=0x%08x\n", auditinfo.ai_termid.at_port);
        printf("asid=%d\n", auditinfo.ai_asid);
 }
 #endif