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
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@
|
||||
#define DBM_SUFFIX ".db"
|
||||
|
||||
typedef struct {
|
||||
char *dptr;
|
||||
void *dptr;
|
||||
int dsize;
|
||||
} datum;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user