diff options
author | ed <ed@FreeBSD.org> | 2016-05-30 16:52:23 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2016-05-30 16:52:23 +0000 |
commit | 12de9c628b5771c4a4e426e051b90b6177551ed7 (patch) | |
tree | 2989724425a8857dbbd854bebf8db02153efdef1 /lib/libc/db | |
parent | 1ea96e571a572c2389bcda695a471ce39ad4750e (diff) | |
download | FreeBSD-src-12de9c628b5771c4a4e426e051b90b6177551ed7.zip FreeBSD-src-12de9c628b5771c4a4e426e051b90b6177551ed7.tar.gz |
Let dbm's datum::dptr use the right type.
According to POSIX, it should use void *, not char *. Unfortunately, the
dsize field also has the wrong type. It should be size_t. I'm not going
to change that, as that will break the ABI.
Reviewed by: pfg
Differential Revision: https://reviews.freebsd.org/D6647
Diffstat (limited to 'lib/libc/db')
-rw-r--r-- | lib/libc/db/man/dbm.3 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/db/man/dbm.3 b/lib/libc/db/man/dbm.3 index eedf804..c16f517 100644 --- a/lib/libc/db/man/dbm.3 +++ b/lib/libc/db/man/dbm.3 @@ -15,7 +15,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 19, 2015 +.Dd May 30, 2016 .Dt DBM 3 .Os .Sh NAME @@ -66,7 +66,7 @@ is declared in .In ndbm.h : .Bd -literal typedef struct { - char *dptr; + void *dptr; int dsize; } datum; .Ed |