[commit] master: adjust return type of strnlen() replacement
mailbox synchronizer
Brought to you by:
ossi
From: Oswald B. <os...@us...> - 2016-12-29 14:23:06
|
commit 357dd5140558a044fe52a2d3ff7abb1153f9968a Author: Oswald Buddenhagen <os...@us...> Date: Thu Dec 29 15:06:22 2016 +0100 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 files changed, 1 insertions(+), 1 deletions(-) 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; |