diff options
author | ed <ed@FreeBSD.org> | 2016-05-31 18:32:57 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2016-05-31 18:32:57 +0000 |
commit | 7c40d543e864474b396f78f0a3fd916704e2f015 (patch) | |
tree | 82ba49d3544b9ad1861941e2d47ab93a63790efc /lib/libc/db | |
parent | a2e427a148f6688e4ea3b76fcf75f1b64d47e50f (diff) | |
download | FreeBSD-src-7c40d543e864474b396f78f0a3fd916704e2f015.zip FreeBSD-src-7c40d543e864474b396f78f0a3fd916704e2f015.tar.gz |
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
Diffstat (limited to 'lib/libc/db')
-rw-r--r-- | lib/libc/db/hash/ndbm.c | 2 | ||||
-rw-r--r-- | lib/libc/db/man/dbm.3 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/db/hash/ndbm.c b/lib/libc/db/hash/ndbm.c index 37adaf6..1a02d00 100644 --- a/lib/libc/db/hash/ndbm.c +++ b/lib/libc/db/hash/ndbm.c @@ -56,7 +56,7 @@ __FBSDID("$FreeBSD$"); * NULL on failure */ extern DBM * -dbm_open(const char *file, int flags, int mode) +dbm_open(const char *file, int flags, mode_t mode) { HASHINFO info; char path[MAXPATHLEN]; diff --git a/lib/libc/db/man/dbm.3 b/lib/libc/db/man/dbm.3 index c16f517..4fe5d82 100644 --- a/lib/libc/db/man/dbm.3 +++ b/lib/libc/db/man/dbm.3 @@ -34,7 +34,7 @@ .In fcntl.h .In ndbm.h .Ft DBM * -.Fn dbm_open "const char *base" "int flags" "int mode" +.Fn dbm_open "const char *base" "int flags" "mode_t mode" .Ft void .Fn dbm_close "DBM *db" .Ft int |