diff options
author | 2012-07-10 11:44:55 +0000 | |
---|---|---|
committer | 2012-07-10 11:44:55 +0000 | |
commit | caad557685399afef745f0c243e34638ae3fde2c (patch) | |
tree | 3025e83af2ed6da04f8834deb4940eaeca1c94ff | |
parent | For setsockopt(SO_{SND,RCV}TIMEO), convert the timeval to ticks using (diff) | |
download | wireguard-openbsd-caad557685399afef745f0c243e34638ae3fde2c.tar.xz wireguard-openbsd-caad557685399afef745f0c243e34638ae3fde2c.zip |
bsearch() doesn't belong here (it's in <stdlib.h>)
Add __restrict bits for tdelete()
ok deraadt@
-rw-r--r-- | include/search.h | 6 |
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 *)); |