summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/util.c2
-rw-r--r--include/util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/util.c b/common/util.c
index bc4001ee22..a353c75a61 100644
--- a/common/util.c
+++ b/common/util.c
@@ -7,7 +7,7 @@
#include "util.h"
-int strlen(const char *s)
+size_t strlen(const char *s)
{
int len = 0;
diff --git a/include/util.h b/include/util.h
index a2395674e9..bf3405728a 100644
--- a/include/util.h
+++ b/include/util.h
@@ -70,7 +70,7 @@ void *memmove(void *dest, const void *src, size_t len);
void *memchr(const void *buffer, int c, size_t n);
int strcasecmp(const char *s1, const char *s2);
int strncasecmp(const char *s1, const char *s2, size_t size);
-int strlen(const char *s);
+size_t strlen(const char *s);
size_t strnlen(const char *s, size_t maxlen);
char *strncpy(char *dest, const char *src, size_t n);
int strncmp(const char *s1, const char *s2, size_t n);