From 8ffd050cf0ecfbeb647cf985c60f67c24faab181 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Thu, 1 Sep 2016 19:01:41 +0200 Subject: src/include: Improve code formatting Change-Id: Ic8ffd26e61c0c3f27872699bb6aa9c39204155b7 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/16390 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Patrick Georgi --- src/include/string.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/include/string.h') diff --git a/src/include/string.h b/src/include/string.h index 125c676128..5b2486ae3c 100644 --- a/src/include/string.h +++ b/src/include/string.h @@ -24,7 +24,7 @@ int snprintf(char * buf, size_t size, const char *fmt, ...); static inline size_t strnlen(const char *src, size_t max) { size_t i = 0; - while((*src++) && (i < max)) { + while ((*src++) && (i < max)) { i++; } return i; @@ -33,7 +33,7 @@ static inline size_t strnlen(const char *src, size_t max) static inline size_t strlen(const char *src) { size_t i = 0; - while(*src++) { + while (*src++) { i++; } return i; @@ -154,15 +154,15 @@ static inline int islower(int c) static inline int toupper(int c) { - if (islower(c)) - c -= 'a'-'A'; - return c; + if (islower(c)) + c -= 'a'-'A'; + return c; } static inline int tolower(int c) { - if (isupper(c)) - c -= 'A'-'a'; - return c; + if (isupper(c)) + c -= 'A'-'a'; + return c; } #endif /* STRING_H */ -- cgit v1.2.3