src/include: Improve code formatting
Change-Id: Ic8ffd26e61c0c3f27872699bb6aa9c39204155b7
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/16390
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
diff --git a/src/include/string.h b/src/include/string.h
index 125c676..5b2486a 100644
--- a/src/include/string.h
+++ b/src/include/string.h
@@ -24,7 +24,7 @@
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 strlen(const char *src)
{
size_t i = 0;
- while(*src++) {
+ while (*src++) {
i++;
}
return i;
@@ -154,15 +154,15 @@
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 */