summaryrefslogtreecommitdiff
path: root/src/lib/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/string.c')
-rw-r--r--src/lib/string.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/string.c b/src/lib/string.c
index 7553295a7d..b1996ff103 100644
--- a/src/lib/string.c
+++ b/src/lib/string.c
@@ -125,9 +125,9 @@ int strncmp(const char *s1, const char *s2, size_t maxlen)
return 0;
}
-int strspn(const char *str, const char *spn)
+size_t strspn(const char *str, const char *spn)
{
- int ret = 0;
+ size_t ret = 0;
while (*str != 0) {
const char *p;
@@ -140,9 +140,9 @@ int strspn(const char *str, const char *spn)
return ret;
}
-int strcspn(const char *str, const char *spn)
+size_t strcspn(const char *str, const char *spn)
{
- int ret = 0;
+ size_t ret = 0;
while (*str != 0) {
const char *p;