summaryrefslogtreecommitdiff
path: root/include/search.h
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2014-07-18 04:16:10 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2014-07-18 04:16:10 +0000
commitd66b8fbf7252de8b957c5c466b8ba14bc722e270 (patch)
tree736622853fd18882e6c97ec7e00796d3e5b46328 /include/search.h
parent0fa794d21065f8093aa81f8a9bbd92bab0c7b9f2 (diff)
Change lsearch()'s "base" argument to require a non-const pointer to
align with POSIX and other systems. Pointed out by Elliott Hughes on tech ok deraadt
Diffstat (limited to 'include/search.h')
-rw-r--r--include/search.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/search.h b/include/search.h
index 1917dd0d283..37f2e60bf72 100644
--- a/include/search.h
+++ b/include/search.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: search.h,v 1.9 2012/07/10 11:44:55 guenther Exp $ */
+/* $OpenBSD: search.h,v 1.10 2014/07/18 04:16:09 matthew Exp $ */
/* $NetBSD: search.h,v 1.9 1995/08/08 21:14:45 jtc Exp $ */
/*
@@ -40,7 +40,7 @@ ENTRY *hsearch(ENTRY, ACTION);
void *lfind(const void *, const void *, size_t *, size_t,
int (*)(const void *, const void *));
-void *lsearch(const void *, const void *, size_t *, size_t,
+void *lsearch(const void *, void *, size_t *, size_t,
int (*)(const void *, const void *));
void insque(void *, void *);
void remque(void *);