master/module.c
branchredundancy
changeset 2129 78efdac9ee87
parent 1930 59a50053ccc6
child 2156 71425e6120d8
--- a/master/module.c	Mon Oct 24 10:49:27 2011 +0200
+++ b/master/module.c	Fri Oct 28 10:54:39 2011 +0200
@@ -289,7 +289,7 @@
 
 /** Parse a MAC address from a string.
  *
- * The MAC address must follow the regexp
+ * The MAC address must match the regular expression
  * "([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}".
  *
  * \return 0 on success, else < 0
@@ -303,8 +303,7 @@
     if (!strlen(src)) {
         if (allow_empty){
             return 0;
-        }
-        else {
+        } else {
             EC_ERR("MAC address may not be empty.\n");
             return -EINVAL;
         }
@@ -319,8 +318,9 @@
             return -EINVAL;
         }
         mac[i] = value;
-        if (i < ETH_ALEN - 1)
+        if (i < ETH_ALEN - 1) {
             src = rem + 1; // skip colon
+        }
     }
 
     return 0;
@@ -502,7 +502,7 @@
 }
 
 /******************************************************************************
- *  Realtime interface
+ * Application interface
  *****************************************************************************/
 
 /** Request a master.