From 7c40d543e864474b396f78f0a3fd916704e2f015 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 31 May 2016 18:32:57 +0000 Subject: Fix prototype of dbm_open(). The last argument of dbm_open() should be a mode_t according to POSIX; not an int. Reviewed by: pfg, kib Differential Revision: https://reviews.freebsd.org/D6650 --- include/ndbm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/ndbm.h b/include/ndbm.h index 1257c92..db83803 100644 --- a/include/ndbm.h +++ b/include/ndbm.h @@ -70,7 +70,7 @@ datum dbm_firstkey(DBM *); long dbm_forder(DBM *, datum); #endif datum dbm_nextkey(DBM *); -DBM *dbm_open(const char *, int, int); +DBM *dbm_open(const char *, int, mode_t); int dbm_store(DBM *, datum, datum, int); #if __BSD_VISIBLE int dbm_dirfno(DBM *); -- cgit v1.1