diff options
author | deraadt <> | 2014-06-10 04:17:37 +0000 |
---|---|---|
committer | deraadt <> | 2014-06-10 04:17:37 +0000 |
commit | d1cb2eb4f0f9779a6be2986e760ea8354285bed9 (patch) | |
tree | fc570d82ae9eecf65c8e32d374796f1b5cee541b /src/lib/libc/string/strnlen.c | |
parent | e1b854f100e2e8f243d8afc553a6811b56a3ee4f (diff) | |
download | openbsd-d1cb2eb4f0f9779a6be2986e760ea8354285bed9.tar.gz openbsd-d1cb2eb4f0f9779a6be2986e760ea8354285bed9.tar.bz2 openbsd-d1cb2eb4f0f9779a6be2986e760ea8354285bed9.zip |
mop up ifndef KERNEL goo; ok miod
Diffstat (limited to 'src/lib/libc/string/strnlen.c')
-rw-r--r-- | src/lib/libc/string/strnlen.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/libc/string/strnlen.c b/src/lib/libc/string/strnlen.c index a5e13ae04e..872cfa6cce 100644 --- a/src/lib/libc/string/strnlen.c +++ b/src/lib/libc/string/strnlen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: strnlen.c,v 1.4 2012/04/26 01:22:31 matthew Exp $ */ | 1 | /* $OpenBSD: strnlen.c,v 1.5 2014/06/10 04:17:37 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com> | 4 | * Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com> |
@@ -18,11 +18,7 @@ | |||
18 | 18 | ||
19 | #include <sys/types.h> | 19 | #include <sys/types.h> |
20 | 20 | ||
21 | #if !defined(_KERNEL) && !defined(_STANDALONE) | ||
22 | #include <string.h> | 21 | #include <string.h> |
23 | #else | ||
24 | #include <lib/libkern/libkern.h> | ||
25 | #endif | ||
26 | 22 | ||
27 | size_t | 23 | size_t |
28 | strnlen(const char *str, size_t maxlen) | 24 | strnlen(const char *str, size_t maxlen) |