changeset 7886:2b3705cc2d65

[fmac-discuss] [PATCH] Fix cstyle issues in avc.c Fix cstyle issues in avc.c reported by cstyle -cpP.
author Stephen Smalley <sds@tycho.nsa.gov>
date Fri, 17 Oct 2008 13:28:43 -0400
parents 76e5e2554169
children f9ded24b041a
files usr/src/uts/common/fmac/avc.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/fmac/avc.c	Fri Oct 17 13:28:26 2008 -0400
+++ b/usr/src/uts/common/fmac/avc.c	Fri Oct 17 13:28:43 2008 -0400
@@ -188,7 +188,7 @@
 			}
 			if (i2 < AV_PERM_TO_STRING_SIZE)
 				avc_audit_append(" %s",
-					av_perm_to_string[i2].name);
+				    av_perm_to_string[i2].name);
 		}
 		i++;
 		perm <<= 1;
@@ -259,7 +259,7 @@
 	avc_cache.latest_notif = 0;
 
 	for (i = 0; i < AVC_CACHE_MAXNODES; i++) {
-		new = (avc_node_t *) kmem_zalloc(sizeof (avc_node_t), KM_SLEEP);
+		new = (avc_node_t *)kmem_zalloc(sizeof (avc_node_t), KM_SLEEP);
 		if (!new) {
 			cmn_err(CE_WARN,
 			    "avc:  only able to allocate %d entries\n", i);
@@ -609,7 +609,7 @@
 {
 	avc_callback_node_t *c;
 
-	c = (avc_callback_node_t *) kmem_alloc(sizeof (avc_callback_node_t),
+	c = (avc_callback_node_t *)kmem_alloc(sizeof (avc_callback_node_t),
 	    KM_SLEEP);
 
 	c->callback = callback;
@@ -845,7 +845,7 @@
 	for (c = avc_callbacks; c; c = c->next) {
 		if (c->events & AVC_CALLBACK_RESET) {
 			rc = c->callback(AVC_CALLBACK_RESET,
-				0, 0, 0, 0, 0);
+			    0, 0, 0, 0, 0);
 			if (rc)
 				return (rc);
 		}
@@ -871,10 +871,10 @@
 {
 	if (enable)
 		return avc_control(AVC_CALLBACK_AUDITALLOW_ENABLE,
-			ssid, tsid, tclass, perms, seqno, 0);
+		    ssid, tsid, tclass, perms, seqno, 0);
 	else
 		return avc_control(AVC_CALLBACK_AUDITALLOW_DISABLE,
-			ssid, tsid, tclass, perms, seqno, 0);
+		    ssid, tsid, tclass, perms, seqno, 0);
 }
 
 /* Enable or disable auditing of denied permissions */
@@ -889,10 +889,10 @@
 {
 	if (enable)
 		return avc_control(AVC_CALLBACK_AUDITDENY_ENABLE,
-			ssid, tsid, tclass, perms, seqno, 0);
+		    ssid, tsid, tclass, perms, seqno, 0);
 	else
 		return avc_control(AVC_CALLBACK_AUDITDENY_DISABLE,
-			ssid, tsid, tclass, perms, seqno, 0);
+		    ssid, tsid, tclass, perms, seqno, 0);
 }
 
 /*