aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-01-20 10:00:23 +0000
committerRoland McGrath <roland@gnu.org>1996-01-20 10:00:23 +0000
commiteb63bdd072eafe6aba40d254a71fd87285f497da (patch)
tree6e65cc839e06b6cbed8609bd829efbd802367c35 /db
parentFri Jan 19 13:28:59 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu> (diff)
downloadglibc-eb63bdd072eafe6aba40d254a71fd87285f497da.tar.gz
glibc-eb63bdd072eafe6aba40d254a71fd87285f497da.tar.bz2
glibc-eb63bdd072eafe6aba40d254a71fd87285f497da.zip
* sysdeps/unix/sysv/linux/tcdrain.c: Define tcdrain, notcvs/libc-960120
__tcdrain. * posix/glob.c (glob): Use prototype in getlogin decl. * db/ndbm.h: Declare dbm_error, dbm_clearerr. * db/db/db.c (__dberr): Define with prototype. (__dbpanic): Use prototypes in casts. * db/hash/hash_log2.c: Add prototype decl. * sysdeps/generic/_strerror.c (_strerror_internal): Define with prototype.
Diffstat (limited to 'db')
-rw-r--r--db/db/db.c18
-rw-r--r--db/hash/hash_log2.c2
-rw-r--r--db/ndbm.h2
3 files changed, 15 insertions, 7 deletions
diff --git a/db/db/db.c b/db/db/db.c
index a18f056db8..c93b36ff75 100644
--- a/db/db/db.c
+++ b/db/db/db.c
@@ -74,7 +74,7 @@ dbopen(fname, flags, mode, type, openinfo)
}
static int
-__dberr()
+__dberr __P((void))
{
return (RET_ERROR);
}
@@ -90,10 +90,14 @@ __dbpanic(dbp)
DB *dbp;
{
/* The only thing that can succeed is a close. */
- dbp->del = (int (*)())__dberr;
- dbp->fd = (int (*)())__dberr;
- dbp->get = (int (*)())__dberr;
- dbp->put = (int (*)())__dberr;
- dbp->seq = (int (*)())__dberr;
- dbp->sync = (int (*)())__dberr;
+ dbp->del = (int (*)__P((const struct __db *,
+ const DBT *, u_int))) __dberr;
+ dbp->get = (int (*)__P((const struct __db *,
+ const DBT *, DBT *, u_int))) __dberr;
+ dbp->put = (int (*)__P((const struct __db *,
+ DBT *, const DBT *, u_int))) __dberr;
+ dbp->seq = (int (*)__P((const struct __db *,
+ DBT *, DBT *, u_int))) __dberr;
+ dbp->sync = (int (*)__P((const struct __db *, u_int))) __dberr;
+ dbp->fd = (int (*)__P((const struct __db *))) __dberr;
}
diff --git a/db/hash/hash_log2.c b/db/hash/hash_log2.c
index c8c56bff2d..92fda72ff0 100644
--- a/db/hash/hash_log2.c
+++ b/db/hash/hash_log2.c
@@ -42,6 +42,8 @@ static char sccsid[] = "@(#)hash_log2.c 8.2 (Berkeley) 5/31/94";
#include <db.h>
+u_int32_t __log2 __P((u_int32_t));
+
u_int32_t
__log2(num)
u_int32_t num;
diff --git a/db/ndbm.h b/db/ndbm.h
index a545bca132..48c4083a2b 100644
--- a/db/ndbm.h
+++ b/db/ndbm.h
@@ -72,6 +72,8 @@ datum dbm_nextkey __P((DBM *));
DBM *dbm_open __P((const char *, int, int));
int dbm_store __P((DBM *, datum, datum, int));
int dbm_dirfno __P((DBM *));
+int dbm_error __P((DBM *));
+int dbm_clearerr __P((DBM *));
__END_DECLS
#endif /* !_NDBM_H_ */