summaryrefslogtreecommitdiff
path: root/src/include/string.h
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2016-09-01 19:01:41 +0200
committerPatrick Georgi <pgeorgi@google.com>2016-09-05 12:28:32 +0200
commit8ffd050cf0ecfbeb647cf985c60f67c24faab181 (patch)
treeb7a507607439e7dcd113665335a0bd827f067c49 /src/include/string.h
parenta15dde0719be9f580038a6df32ff18fb017886bf (diff)
downloadcoreboot-8ffd050cf0ecfbeb647cf985c60f67c24faab181.tar.xz
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>
Diffstat (limited to 'src/include/string.h')
-rw-r--r--src/include/string.h16
1 files changed, 8 insertions, 8 deletions
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 */