aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/search
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/search')
-rw-r--r--newlib/libc/search/db_local.h2
-rw-r--r--newlib/libc/search/hash.c11
2 files changed, 8 insertions, 5 deletions
diff --git a/newlib/libc/search/db_local.h b/newlib/libc/search/db_local.h
index 53f9d17..ec621fa 100644
--- a/newlib/libc/search/db_local.h
+++ b/newlib/libc/search/db_local.h
@@ -210,7 +210,7 @@ DB *dbopen(const char *, int, int, DBTYPE, const void *);
#ifdef __DBINTERFACE_PRIVATE
DB *__bt_open(const char *, int, int, const BTREEINFO *, int);
-DB *__hash_open(const char *, int, int, const HASHINFO *, int);
+DB *__hash_open(const char *, int, int, int, const HASHINFO *);
DB *__rec_open(const char *, int, int, const RECNOINFO *, int);
void __dbpanic(DB *dbp);
#endif
diff --git a/newlib/libc/search/hash.c b/newlib/libc/search/hash.c
index 8f56b6b..0301fc0 100644
--- a/newlib/libc/search/hash.c
+++ b/newlib/libc/search/hash.c
@@ -53,6 +53,7 @@ static char sccsid[] = "@(#)hash.c 8.9 (Berkeley) 6/16/94";
#include <assert.h>
#endif
+#define __DBINTERFACE_PRIVATE /* activate prototypes from db_local.h */
#include "db_local.h"
#include "hash.h"
#include "page.h"
@@ -103,10 +104,12 @@ int hash_accesses, hash_collisions, hash_expansions, hash_overflows;
/* OPEN/CLOSE */
extern DB *
-__hash_open(file, flags, mode, info, dflags)
- const char *file;
- int flags, mode, dflags;
- const HASHINFO *info; /* Special directives for create */
+_DEFUN(__hash_open, (file, flags, mode, info, dflags),
+ const char *file _AND
+ int flags _AND
+ int mode _AND
+ int dflags _AND
+ const HASHINFO *info) /* Special directives for create */
{
HTAB *hashp;