PERFORCE change 90094 for review

Robert Watson rwatson at FreeBSD.org
Sat Jan 21 15:30:48 GMT 2006


http://perforce.freebsd.org/chv.cgi?CH=90094

Change 90094 by rwatson at 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));
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list