lib/util.c: style fixes
authorAndy Zhou <azhou@nicira.com>
Tue, 2 Jun 2015 02:07:13 +0000 (19:07 -0700)
committerAndy Zhou <azhou@nicira.com>
Tue, 2 Jun 2015 21:08:51 +0000 (14:08 -0700)
Covert tabs into spaces. Found by inspection.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
lib/util.c

index c7e2b77..9473985 100644 (file)
@@ -651,11 +651,11 @@ str_to_uint(const char *s, int base, unsigned int *u)
     long long ll;
     bool ok = str_to_llong(s, base, &ll);
     if (!ok || ll < 0 || ll > UINT_MAX) {
-       *u = 0;
-       return false;
+        *u = 0;
+        return false;
     } else {
-       *u = ll;
-       return true;
+        *u = ll;
+        return true;
     }
 }
 
@@ -799,7 +799,7 @@ parse_int_string(const char *s, uint8_t *valuep, int field_width, char **tail)
 
 free:
         free(hexit_str);
-       return err;
+        return err;
     }
 
     errno = 0;