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>
This commit is contained in:
Elyes HAOUAS
2016-09-01 19:01:41 +02:00
committed by Patrick Georgi
parent a15dde0719
commit 8ffd050cf0
9 changed files with 58 additions and 60 deletions

View File

@ -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 */