Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/compat fix prototype for strnlen.



details:   https://anonhg.NetBSD.org/src/rev/9ea5da8995c0
branches:  trunk
changeset: 325853:9ea5da8995c0
user:      apb <apb%NetBSD.org@localhost>
date:      Thu Jan 09 16:08:46 2014 +0000

description:
fix prototype for strnlen.

diffstat:

 tools/compat/compat_defs.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6348dac45fc8 -r 9ea5da8995c0 tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h        Thu Jan 09 14:07:31 2014 +0000
+++ b/tools/compat/compat_defs.h        Thu Jan 09 16:08:46 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_defs.h,v 1.94 2014/01/09 11:31:12 apb Exp $     */
+/*     $NetBSD: compat_defs.h,v 1.95 2014/01/09 16:08:46 apb Exp $     */
 
 #ifndef        __NETBSD_COMPAT_DEFS_H__
 #define        __NETBSD_COMPAT_DEFS_H__
@@ -416,7 +416,7 @@
 char           *strndup(const char *, size_t);
 #endif
 #if !HAVE_DECL_STRNLEN
-char           *strnlen(const char *, size_t);
+size_t         strnlen(const char *, size_t);
 #endif
 #if !HAVE_DECL_LCHFLAGS
 int            lchflags(const char *, unsigned long);



Home | Main Index | Thread Index | Old Index