diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-03-05 11:55:16 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-03-05 11:55:16 +0300 |
commit | b73e65bb44e2bac2b3e0a7a2a9f596ccb47e05a5 (patch) | |
tree | ea53356762fe9c443a6aac111f4477427ccf6888 /newlib/libc/search | |
parent | 56fbdfab68cf4577781e8623fe4c6d13ca7ec727 (diff) |
* libm/math/ef_sqrt.c: Delete unused variable sign.
* libc/stdlib/getenv.c: Delete "char *_findenv_r ();", as is not a
proper prototype, and is properly prototyped in stdlib.h, anyway.
* libc/stdlib/getenv_r.c: Ditto.
* libc/search/hash.c: Add _DEFUN to __hash_open() declaration; add
#define __DBINTERFACE_PRIVATE to activate prototypes from db_local.h.
* libc/search/db_local.h: Correct __hash_open() prototype.
* libc/sys/linux/cmath/math_private.h: Eliminate compiler warnings:
Remove #define INFINITY (redefines from math.h); remove #define __isnanf
and #define __isinff isinff.
Diffstat (limited to 'newlib/libc/search')
-rw-r--r-- | newlib/libc/search/db_local.h | 2 | ||||
-rw-r--r-- | newlib/libc/search/hash.c | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/newlib/libc/search/db_local.h b/newlib/libc/search/db_local.h index 53f9d17ff..ec621fabf 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 8f56b6b9d..0301fc03f 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; |