summaryrefslogtreecommitdiff
path: root/usr/src/cmd/auditreduce/option.c
diff options
context:
space:
mode:
authorTony Nguyen <Ton.Nguyen@Sun.COM>2008-09-29 17:35:19 -0700
committerTony Nguyen <Ton.Nguyen@Sun.COM>2008-09-29 17:35:19 -0700
commitd0fa49b78d1f40d84ec76c363cdc38cf128511dd (patch)
treeb3c9ec29c19b3ed52c5d16b21f7eb0d328f96d16 /usr/src/cmd/auditreduce/option.c
parent6392794b28bef963aa5ad05c3da79435fd0a5a0b (diff)
downloadillumos-joyent-d0fa49b78d1f40d84ec76c363cdc38cf128511dd.tar.gz
1207395 au_event_t is a currently a short. It should be redefined to be a u_short
Diffstat (limited to 'usr/src/cmd/auditreduce/option.c')
-rw-r--r--usr/src/cmd/auditreduce/option.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/src/cmd/auditreduce/option.c b/usr/src/cmd/auditreduce/option.c
index 0e152feda6..28e31a0d29 100644
--- a/usr/src/cmd/auditreduce/option.c
+++ b/usr/src/cmd/auditreduce/option.c
@@ -19,11 +19,10 @@
* CDDL HEADER END
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Command line option processing for auditreduce.
@@ -304,7 +303,7 @@ proc_sid(char *optarg)
return (-1);
}
flags |= M_SID;
- m_sid = atol(optarg);
+ m_sid = (au_asid_t)atol(optarg);
return (0);
}
@@ -436,7 +435,7 @@ obj_lkup(char *obj_str)
return (&obj_tbl[i]);
/* not in table */
- return ((obj_ent_t *)0);
+ return (NULL);
}
@@ -464,7 +463,7 @@ proc_type(char *optstr)
flags |= M_TYPE;
m_type = 0;
if (a_isnum(optstr, TRUE)) {
- if ((aep = getauevnam(optstr)) != (struct au_event_ent *)NULL)
+ if ((aep = getauevnam(optstr)) != NULL)
m_type = aep->ae_number;
} else {
if ((aep = getauevnum((au_event_t)atoi(optstr))) !=