summaryrefslogtreecommitdiffstats
path: root/include
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 /include
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
Diffstat (limited to 'include')
-rw-r--r--include/ndbm.h2
1 files changed, 1 insertions, 1 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;
OpenPOWER on IntegriCloud