Browse Source

Fix decl for tfind(3)

OPENBSD_2_2
millert 27 years ago
parent
commit
f1026de800
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/include/search.h
  2. +1
    -1
      src/lib/libc/stdlib/tfind.c

+ 1
- 1
src/include/search.h View File

@ -47,7 +47,7 @@ extern void remque __P((void *));
extern void *tdelete __P((const void *, void **,
int (*)(const void *, const void *)));
extern void *tfind __P((const void *, void **,
extern void *tfind __P((const void *, void * const *,
int (*)(const void *, const void *)));
extern void *tsearch __P((const void *, void **,
int (*)(const void *, const void *)));


+ 1
- 1
src/lib/libc/stdlib/tfind.c View File

@ -21,7 +21,7 @@ typedef struct node_t
void *
tfind(vkey, vrootp, compar)
const void *vkey; /* key to be found */
void **vrootp; /* address of the tree root */
void *const *vrootp; /* address of the tree root */
int (*compar) __P((const void *, const void *));
{
char *key = (char *)vkey;


Loading…
Cancel
Save