From 2fed5061dbe20aa378935f2b1dabfeb3f4cf6976 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Mon, 30 May 2016 16:52:23 +0000 Subject: 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 --- include/ndbm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/ndbm.h b/include/ndbm.h index 0acb6a657e849..1257c928e05ae 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; -- cgit v1.3