From d0fa49b78d1f40d84ec76c363cdc38cf128511dd Mon Sep 17 00:00:00 2001 From: Tony Nguyen Date: Mon, 29 Sep 2008 17:35:19 -0700 Subject: 1207395 au_event_t is a currently a short. It should be redefined to be a u_short --- usr/src/cmd/auditreduce/option.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'usr/src/cmd/auditreduce/option.c') 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))) != -- cgit v1.2.3