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:
parent
7e3327be32
commit
2fed5061db
@ -52,7 +52,7 @@
|
|||||||
#define DBM_SUFFIX ".db"
|
#define DBM_SUFFIX ".db"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char *dptr;
|
void *dptr;
|
||||||
int dsize;
|
int dsize;
|
||||||
} datum;
|
} datum;
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd February 19, 2015
|
.Dd May 30, 2016
|
||||||
.Dt DBM 3
|
.Dt DBM 3
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -66,7 +66,7 @@ is declared in
|
|||||||
.In ndbm.h :
|
.In ndbm.h :
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char *dptr;
|
void *dptr;
|
||||||
int dsize;
|
int dsize;
|
||||||
} datum;
|
} datum;
|
||||||
.Ed
|
.Ed
|
||||||
|
Loading…
Reference in New Issue
Block a user