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 /include | |
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 'include')
-rw-r--r-- | include/ndbm.h | 2 |
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; |