PERFORCE change 90093 for review

Robert Watson rwatson at FreeBSD.org
Sat Jan 21 15:29:46 GMT 2006


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

Change 90093 by rwatson at rwatson_sesame on 2006/01/21 15:28:57

	Remove unneeded class entry pointers.

Affected files ...

.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_flags.c#10 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_flags.c#10 (text+ko) ====

@@ -45,7 +45,7 @@
 {
 	char class_ent_name[AU_CLASS_NAME_MAX];
 	char class_ent_desc[AU_CLASS_DESC_MAX];
-	struct au_class_ent c, *cp;
+	struct au_class_ent c;
 	char *tok;
 	char sel, sub;
 	char *last;
@@ -84,7 +84,7 @@
 		} else
 			sel = AU_PRS_BOTH;
 
-		if ((cp = getauclassnam_r(&c, tok)) != NULL) {
+		if ((getauclassnam_r(&c, tok)) != NULL) {
 			if (sub)
 				SUB_FROM_MASK(masks, c.ac_class, sel);
 			else
@@ -118,7 +118,7 @@
 {
 	char class_ent_name[AU_CLASS_NAME_MAX];
 	char class_ent_desc[AU_CLASS_DESC_MAX];
-	struct au_class_ent c, *cp;
+	struct au_class_ent c;
 	char *strptr = auditstr;
 	u_char sel;
 
@@ -138,7 +138,7 @@
 	 * the success or failure masks.
 	 */
 	setauclass();
-	while ((cp = getauclassent_r(&c)) != NULL) {
+	while ((getauclassent_r(&c)) != NULL) {
 		sel = 0;
 
 		/* Dont do anything for class = no. */
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