summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/tsearch.c
diff options
context:
space:
mode:
authormillert <>2002-02-16 21:27:50 +0000
committermillert <>2002-02-16 21:27:50 +0000
commit052e020be6be85be6238c44b8386a61f8db7b6a4 (patch)
tree4cf8f905bd37027527533678516a258fa89e2696 /src/lib/libc/stdlib/tsearch.c
parentee0af55ed65515812050f3b9a8d431c941b73eb8 (diff)
downloadopenbsd-052e020be6be85be6238c44b8386a61f8db7b6a4.tar.gz
openbsd-052e020be6be85be6238c44b8386a61f8db7b6a4.tar.bz2
openbsd-052e020be6be85be6238c44b8386a61f8db7b6a4.zip
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'src/lib/libc/stdlib/tsearch.c')
-rw-r--r--src/lib/libc/stdlib/tsearch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/tsearch.c b/src/lib/libc/stdlib/tsearch.c
index 562ace1845..0ad5866172 100644
--- a/src/lib/libc/stdlib/tsearch.c
+++ b/src/lib/libc/stdlib/tsearch.c
@@ -23,7 +23,7 @@ void *
23tsearch(vkey, vrootp, compar) 23tsearch(vkey, vrootp, compar)
24 const void *vkey; /* key to be located */ 24 const void *vkey; /* key to be located */
25 void **vrootp; /* address of tree root */ 25 void **vrootp; /* address of tree root */
26 int (*compar) __P((const void *, const void *)); 26 int (*compar)(const void *, const void *);
27{ 27{
28 register node *q; 28 register node *q;
29 char *key = (char *)vkey; 29 char *key = (char *)vkey;
@@ -54,7 +54,7 @@ void *
54tdelete(vkey, vrootp, compar) 54tdelete(vkey, vrootp, compar)
55 const void *vkey; /* key to be deleted */ 55 const void *vkey; /* key to be deleted */
56 void **vrootp; /* address of the root of tree */ 56 void **vrootp; /* address of the root of tree */
57 int (*compar) __P((const void *, const void *)); 57 int (*compar)(const void *, const void *);
58{ 58{
59 node **rootp = (node **)vrootp; 59 node **rootp = (node **)vrootp;
60 char *key = (char *)vkey; 60 char *key = (char *)vkey;
@@ -117,7 +117,7 @@ trecurse(root, action, level)
117void 117void
118twalk(vroot, action) 118twalk(vroot, action)
119 const void *vroot; /* Root of the tree to be walked */ 119 const void *vroot; /* Root of the tree to be walked */
120 void (*action) __P((const void *, VISIT, int)); 120 void (*action)(const void *, VISIT, int);
121{ 121{
122 node *root = (node *)vroot; 122 node *root = (node *)vroot;
123 123