summaryrefslogtreecommitdiff
path: root/include/search.h
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2012-07-10 11:44:56 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2012-07-10 11:44:56 +0000
commitb3b37a049c2d37cf70f7e21cdd38b18a517c2c93 (patch)
treee79d38025f6765b245afb3e01ea18de42128aa37 /include/search.h
parent299487a62cc115bc8bca8214d0a4b3c35d983de4 (diff)
bsearch() doesn't belong here (it's in <stdlib.h>)
Add __restrict bits for tdelete() ok deraadt@
Diffstat (limited to 'include/search.h')
-rw-r--r--include/search.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/search.h b/include/search.h
index 4d596dad384..1917dd0d283 100644
--- a/include/search.h
+++ b/include/search.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: search.h,v 1.8 2006/01/06 18:53:04 millert Exp $ */
+/* $OpenBSD: search.h,v 1.9 2012/07/10 11:44:55 guenther Exp $ */
/* $NetBSD: search.h,v 1.9 1995/08/08 21:14:45 jtc Exp $ */
/*
@@ -34,8 +34,6 @@ typedef enum {
} VISIT;
__BEGIN_DECLS
-void *bsearch(const void *, const void *, size_t, size_t,
- int (*)(const void *, const void *));
int hcreate(size_t);
void hdestroy(void);
ENTRY *hsearch(ENTRY, ACTION);
@@ -47,7 +45,7 @@ void *lsearch(const void *, const void *, size_t *, size_t,
void insque(void *, void *);
void remque(void *);
-void *tdelete(const void *, void **,
+void *tdelete(const void * __restrict, void ** __restrict,
int (*)(const void *, const void *));
void *tfind(const void *, void * const *,
int (*)(const void *, const void *));