[openssh-commits] [openssh] 03/03: Add prototype for strnlen to prevent warnings.

git+noreply at mindrot.org git+noreply at mindrot.org
Sat Jul 6 13:26:52 AEST 2019


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit b8e2b797362526437e0642a6c2f2970d794f2561
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Sat Jul 6 13:13:57 2019 +1000

    Add prototype for strnlen to prevent warnings.
---
 openbsd-compat/openbsd-compat.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index 95721357..f5864688 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -109,6 +109,10 @@ size_t strlcat(char *dst, const char *src, size_t siz);
 char *strcasestr(const char *, const char *);
 #endif
 
+#ifndef HAVE_STRNLEN
+size_t strnlen(const char *, size_t);
+#endif
+
 #ifndef HAVE_STRNDUP
 char *strndup(const char *s, size_t n);
 #endif

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list