Cosmetics, coding style fixes (trivial).
[coreboot.git] / payloads / libpayload / libc / ctype.c
index c2f42a52d2d45ae1c22ac5f612818f2293fe042e..9853fceb59426198211993e9442af8deccd9a362 100644 (file)
  * SUCH DAMAGE.
  */
 
-/* Basic ctype functions */
-
 #include <libpayload.h>
 
 int isspace(int c)
 {
-    switch (c) {
-    case ' ': case '\f': case '\n':
-    case '\r': case '\t': case '\v':
-       return 1;
-    default:
-       return 0;
-    }
+       switch (c) {
+       case ' ':
+       case '\f':
+       case '\n':
+       case '\r':
+       case '\t':
+       case '\v':
+               return 1;
+       default:
+               return 0;
+       }
 }
 
 int isdigit(int c)
 {
-    switch (c) {
-    case '0'...'9':
-       return 1;
-    default:
-       return 0;
-    }
+       switch (c) {
+       case '0'...'9':
+               return 1;
+       default:
+               return 0;
+       }
 }
 
 int tolower(int c)
 {
-    if (c >= 'A' && c <= 'Z')
-       return c - 'A' + 'a';
-    return c;
+       if (c >= 'A' && c <= 'Z')
+               return c - 'A' + 'a';
+       return c;
 }