summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/c2/audit.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/c2/audit.c')
-rw-r--r--usr/src/uts/common/c2/audit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/common/c2/audit.c b/usr/src/uts/common/c2/audit.c
index cb459a8bca..66b0e4a3ff 100644
--- a/usr/src/uts/common/c2/audit.c
+++ b/usr/src/uts/common/c2/audit.c
@@ -1005,7 +1005,7 @@ audit_closef(struct file *fp)
struct vnode *vp;
token_t *ad = NULL;
struct vattr attr;
- short evmod = 0;
+ au_emod_t evmod = 0;
const auditinfo_addr_t *ainfo;
int getattr_ret;
cred_t *cr;
@@ -1019,7 +1019,7 @@ audit_closef(struct file *fp)
/* audit record already generated by system call envelope */
if (tad->tad_event == AUE_CLOSE) {
/* so close audit event will have bits set */
- tad->tad_evmod |= (short)fad->fad_flags;
+ tad->tad_evmod |= (au_emod_t)fad->fad_flags;
return;
}
@@ -1058,7 +1058,7 @@ audit_closef(struct file *fp)
}
}
- evmod = (short)fad->fad_flags;
+ evmod = (au_emod_t)fad->fad_flags;
if (fad->fad_aupath != NULL) {
au_write((caddr_t *)&(ad), au_to_path(fad->fad_aupath));
} else {