summaryrefslogtreecommitdiff
path: root/src/include/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/string.h')
-rw-r--r--src/include/string.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/include/string.h b/src/include/string.h
index f2777a9e49..d547e49fff 100644
--- a/src/include/string.h
+++ b/src/include/string.h
@@ -24,18 +24,16 @@ 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;
}
static inline size_t strlen(const char *src)
{
size_t i = 0;
- while (*src++) {
+ while (*src++)
i++;
- }
return i;
}