From 357dd5140558a044fe52a2d3ff7abb1153f9968a Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Thu, 29 Dec 2016 15:06:22 +0100 Subject: [PATCH] adjust return type of strnlen() replacement it doesn't really matter, but it's nicer to stay consistent with the official prototype. --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index ca4e415..c226c1b 100644 --- a/src/util.c +++ b/src/util.c @@ -222,7 +222,7 @@ memrchr( const void *s, int c, size_t n ) #endif #ifndef HAVE_STRNLEN -int +size_t strnlen( const char *str, size_t maxlen ) { size_t len;