summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2014-07-20 20:17:21 +0000
committerchristos <christos@NetBSD.org>2014-07-20 20:17:21 +0000
commitc80dfef2b1aae6f50bc152fcd160181f5d6d75ba (patch)
tree029355bb9d5c197ba06be6198576c8c36fce97dd /include
parentcfd7b574b2ab2665ab88f30175c7d8e18a1baaa3 (diff)
amend the new destroy function to take function pointers.
Diffstat (limited to 'include')
-rw-r--r--include/search.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/search.h b/include/search.h
index 651eb424662..6b841c332f1 100644
--- a/include/search.h
+++ b/include/search.h
@@ -1,4 +1,4 @@
-/* $NetBSD: search.h,v 1.21 2014/07/20 13:34:17 christos Exp $ */
+/* $NetBSD: search.h,v 1.22 2014/07/20 20:17:21 christos Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>
@@ -62,12 +62,10 @@ void hdestroy(void);
ENTRY *hsearch(ENTRY, ACTION);
#ifdef _NETBSD_SOURCE
-#define FREE_KEY 1
-#define FREE_DATA 2
-void hdestroy1(int);
+void hdestroy1(void (*)(void *), void (*)(void *));
int hcreate_r(size_t, struct hsearch_data *);
void hdestroy_r(struct hsearch_data *);
-void hdestroy1_r(struct hsearch_data *, int);
+void hdestroy1_r(struct hsearch_data *, void (*)(void *), void (*)(void *));
int hsearch_r(ENTRY, ACTION, ENTRY **, struct hsearch_data *);
#endif /* _NETBSD_SOURCE */