summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2016-05-30 16:52:23 +0000
committered <ed@FreeBSD.org>2016-05-30 16:52:23 +0000
commit12de9c628b5771c4a4e426e051b90b6177551ed7 (patch)
tree2989724425a8857dbbd854bebf8db02153efdef1
parent1ea96e571a572c2389bcda695a471ce39ad4750e (diff)
downloadFreeBSD-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
-rw-r--r--include/ndbm.h2
-rw-r--r--lib/libc/db/man/dbm.34
2 files changed, 3 insertions, 3 deletions
diff --git a/include/ndbm.h b/include/ndbm.h
index 0acb6a6..1257c92 100644
--- a/include/ndbm.h
+++ b/include/ndbm.h
@@ -52,7 +52,7 @@
#define DBM_SUFFIX ".db"
typedef struct {
- char *dptr;
+ void *dptr;
int dsize;
} datum;
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
OpenPOWER on IntegriCloud