Explorar o código

adjust return type of strnlen() replacement

it doesn't really matter, but it's nicer to stay consistent with the
official prototype.
Oswald Buddenhagen %!s(int64=8) %!d(string=hai) anos
pai
achega
357dd51405
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/util.c

+ 1 - 1
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;