[Openais] [PATCH]: openais/trunk: Fix tabs and goto statement in saMsg service

Ryan O'Hara rohara at redhat.com
Mon Jul 6 09:03:30 PDT 2009


In saMsgQueueOpen and saMsgQueueOpenAsync, fix goto statement to jump
to error_exit instead of error_put.

Also fixed up some tabs.

Ryan

-------------- next part --------------
Index: lib/msg.c
===================================================================
--- lib/msg.c	(revision 2022)
+++ lib/msg.c	(working copy)
@@ -419,13 +419,13 @@
 	}
 
 	if (openFlags & SA_MSG_QUEUE_CREATE) {
-	    if (creationAttributes == NULL) {
-		error = SA_AIS_ERR_INVALID_PARAM;
-		goto error_put;
-	    }
+		if (creationAttributes == NULL) {
+			error = SA_AIS_ERR_INVALID_PARAM;
+			goto error_exit;
+		}
 
-	    if ((creationAttributes->creationFlags != 0) &&
-		(creationAttributes->creationFlags != SA_MSG_QUEUE_PERSISTENT)) {
+		if ((creationAttributes->creationFlags != 0) &&
+		    (creationAttributes->creationFlags != SA_MSG_QUEUE_PERSISTENT)) {
 			error = SA_AIS_ERR_BAD_FLAGS;
 			goto error_exit;
 		}
@@ -559,13 +559,13 @@
 	}
 
 	if (openFlags & SA_MSG_QUEUE_CREATE) {
-	    if (creationAttributes == NULL) {
-		error = SA_AIS_ERR_INVALID_PARAM;
-		goto error_put;
-	    }
+		if (creationAttributes == NULL) {
+			error = SA_AIS_ERR_INVALID_PARAM;
+			goto error_exit;
+		}
 
-	    if ((creationAttributes->creationFlags != 0) &&
-		(creationAttributes->creationFlags != SA_MSG_QUEUE_PERSISTENT)) {
+		if ((creationAttributes->creationFlags != 0) &&
+		    (creationAttributes->creationFlags != SA_MSG_QUEUE_PERSISTENT)) {
 			error = SA_AIS_ERR_BAD_FLAGS;
 			goto error_exit;
 		}


More information about the Openais mailing list