diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2008-03-20 19:54:59 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2008-03-20 19:54:59 +0000 |
commit | 6a441bfb46337ed6b59abed56dad35d94802282c (patch) | |
tree | 44eb1d67fcbc450907472186bbc0036afe9e380c /payloads/libpayload/libc/ctype.c | |
parent | 5f4c8abb6537fa7377969e837dab987abefcf922 (diff) |
Cosmetics, coding style fixes (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3180 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/libc/ctype.c')
-rw-r--r-- | payloads/libpayload/libc/ctype.c | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/payloads/libpayload/libc/ctype.c b/payloads/libpayload/libc/ctype.c index c2f42a52d2..9853fceb59 100644 --- a/payloads/libpayload/libc/ctype.c +++ b/payloads/libpayload/libc/ctype.c @@ -27,34 +27,36 @@ * 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; } |