Browse Source

bsearch() doesn't belong here (it's in <stdlib.h>)

Add __restrict bits for tdelete()
ok deraadt@
OPENBSD_5_2
guenther 12 years ago
parent
commit
0de147cd86
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      src/include/search.h

+ 2
- 4
src/include/search.h View File

@ -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 $ */ /* $NetBSD: search.h,v 1.9 1995/08/08 21:14:45 jtc Exp $ */
/* /*
@ -34,8 +34,6 @@ typedef enum {
} VISIT; } VISIT;
__BEGIN_DECLS __BEGIN_DECLS
void *bsearch(const void *, const void *, size_t, size_t,
int (*)(const void *, const void *));
int hcreate(size_t); int hcreate(size_t);
void hdestroy(void); void hdestroy(void);
ENTRY *hsearch(ENTRY, ACTION); ENTRY *hsearch(ENTRY, ACTION);
@ -47,7 +45,7 @@ void *lsearch(const void *, const void *, size_t *, size_t,
void insque(void *, void *); void insque(void *, void *);
void remque(void *); void remque(void *);
void *tdelete(const void *, void **,
void *tdelete(const void * __restrict, void ** __restrict,
int (*)(const void *, const void *)); int (*)(const void *, const void *));
void *tfind(const void *, void * const *, void *tfind(const void *, void * const *,
int (*)(const void *, const void *)); int (*)(const void *, const void *));


Loading…
Cancel
Save