Date: Sat, 21 Jan 2006 15:30:48 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 90094 for review Message-ID: <200601211530.k0LFUmj6087600@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=90094 Change 90094 by rwatson@rwatson_sesame on 2006/01/21 15:30:22 Remove unnecessary argument sanity checks. Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_flags.c#11 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_flags.c#11 (text+ko) ==== @@ -50,12 +50,6 @@ char sel, sub; char *last; - - if ((auditstr == NULL) || (masks == NULL)) { - errno = EINVAL; - return (-1); - } - bzero(&c, sizeof(c)); bzero(class_ent_name, sizeof(class_ent_name)); bzero(class_ent_desc, sizeof(class_ent_desc)); @@ -122,11 +116,6 @@ char *strptr = auditstr; u_char sel; - if ((auditstr == NULL) || (masks == NULL)) { - return (EINVAL); - return (-1); - } - bzero(&c, sizeof(c)); bzero(class_ent_name, sizeof(class_ent_name)); bzero(class_ent_desc, sizeof(class_ent_desc));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601211530.k0LFUmj6087600>