[ovs-dev] [PATCH 1/3] vswitchd: Correct indentation in bridge.

Ethan Jackson ethan at nicira.com
Sat Dec 4 02:24:22 UTC 2010


The "bond_unixctl_hash" function was using tabs instead of spaces.
---
 vswitchd/bridge.c |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 9916414..64fa0f0 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -3417,20 +3417,20 @@ static void
 bond_unixctl_hash(struct unixctl_conn *conn, const char *args,
                   void *aux OVS_UNUSED)
 {
-	uint8_t mac[ETH_ADDR_LEN];
-	uint8_t hash;
-	char *hash_cstr;
-
-	if (sscanf(args, ETH_ADDR_SCAN_FMT, ETH_ADDR_SCAN_ARGS(mac))
-	    == ETH_ADDR_SCAN_COUNT) {
-		hash = bond_hash(mac);
-
-		hash_cstr = xasprintf("%u", hash);
-		unixctl_command_reply(conn, 200, hash_cstr);
-		free(hash_cstr);
-	} else {
-		unixctl_command_reply(conn, 501, "invalid mac");
-	}
+    uint8_t mac[ETH_ADDR_LEN];
+    uint8_t hash;
+    char *hash_cstr;
+
+    if (sscanf(args, ETH_ADDR_SCAN_FMT, ETH_ADDR_SCAN_ARGS(mac))
+        == ETH_ADDR_SCAN_COUNT) {
+        hash = bond_hash(mac);
+
+        hash_cstr = xasprintf("%u", hash);
+        unixctl_command_reply(conn, 200, hash_cstr);
+        free(hash_cstr);
+    } else {
+        unixctl_command_reply(conn, 501, "invalid mac");
+    }
 }
 
 static void
-- 
1.7.2.3





More information about the dev mailing list