summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/strnlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/lib/libkern/strnlen.c')
-rw-r--r--sys/lib/libkern/strnlen.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/lib/libkern/strnlen.c b/sys/lib/libkern/strnlen.c
index ac439d066a2..92be016c055 100644
--- a/sys/lib/libkern/strnlen.c
+++ b/sys/lib/libkern/strnlen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strnlen.c,v 1.1 2012/04/26 01:22:31 matthew Exp $ */
+/* $OpenBSD: strnlen.c,v 1.2 2014/06/10 04:16:57 deraadt Exp $ */
/*
* Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -17,12 +17,7 @@
*/
#include <sys/types.h>
-
-#if !defined(_KERNEL) && !defined(_STANDALONE)
-#include <string.h>
-#else
#include <lib/libkern/libkern.h>
-#endif
size_t
strnlen(const char *str, size_t maxlen)