summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/timingsafe_bcmp.c
diff options
context:
space:
mode:
authorderaadt <>2014-06-10 04:17:37 +0000
committerderaadt <>2014-06-10 04:17:37 +0000
commitd1cb2eb4f0f9779a6be2986e760ea8354285bed9 (patch)
treefc570d82ae9eecf65c8e32d374796f1b5cee541b /src/lib/libc/string/timingsafe_bcmp.c
parente1b854f100e2e8f243d8afc553a6811b56a3ee4f (diff)
downloadopenbsd-d1cb2eb4f0f9779a6be2986e760ea8354285bed9.tar.gz
openbsd-d1cb2eb4f0f9779a6be2986e760ea8354285bed9.tar.bz2
openbsd-d1cb2eb4f0f9779a6be2986e760ea8354285bed9.zip
mop up ifndef KERNEL goo; ok miod
Diffstat (limited to 'src/lib/libc/string/timingsafe_bcmp.c')
-rw-r--r--src/lib/libc/string/timingsafe_bcmp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/libc/string/timingsafe_bcmp.c b/src/lib/libc/string/timingsafe_bcmp.c
index 9c4287cf63..0b736154ca 100644
--- a/src/lib/libc/string/timingsafe_bcmp.c
+++ b/src/lib/libc/string/timingsafe_bcmp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: timingsafe_bcmp.c,v 1.1 2010/09/24 13:33:00 matthew Exp $ */ 1/* $OpenBSD: timingsafe_bcmp.c,v 1.2 2014/06/10 04:17:37 deraadt Exp $ */
2/* 2/*
3 * Copyright (c) 2010 Damien Miller. All rights reserved. 3 * Copyright (c) 2010 Damien Miller. All rights reserved.
4 * 4 *
@@ -15,11 +15,7 @@
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 */ 16 */
17 17
18#if !defined(_KERNEL) && !defined(_STANDALONE)
19#include <string.h> 18#include <string.h>
20#else
21#include <lib/libkern/libkern.h>
22#endif
23 19
24int 20int
25timingsafe_bcmp(const void *b1, const void *b2, size_t n) 21timingsafe_bcmp(const void *b1, const void *b2, size_t n)