Improved comments. redundancy
authorFlorian Pose <fp@igh-essen.com>
Fri, 28 Oct 2011 10:54:39 +0200
branchredundancy
changeset 2129 78efdac9ee87
parent 2124 c4afc5fede19
child 2133 74dbd0b7d6aa
Improved comments.
master/module.c
--- 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.