Date: Mon, 30 May 2016 16:52:23 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300999 - in head: include lib/libc/db/man Message-ID: <201605301652.u4UGqNeu070540@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Mon May 30 16:52:23 2016 New Revision: 300999 URL: https://svnweb.freebsd.org/changeset/base/300999 Log: 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 Modified: head/include/ndbm.h head/lib/libc/db/man/dbm.3 Modified: head/include/ndbm.h ============================================================================== --- head/include/ndbm.h Mon May 30 16:26:34 2016 (r300998) +++ head/include/ndbm.h Mon May 30 16:52:23 2016 (r300999) @@ -52,7 +52,7 @@ #define DBM_SUFFIX ".db" typedef struct { - char *dptr; + void *dptr; int dsize; } datum; Modified: head/lib/libc/db/man/dbm.3 ============================================================================== --- head/lib/libc/db/man/dbm.3 Mon May 30 16:26:34 2016 (r300998) +++ head/lib/libc/db/man/dbm.3 Mon May 30 16:52:23 2016 (r300999) @@ -15,7 +15,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 19, 2015 +.Dd May 30, 2016 .Dt DBM 3 .Os .Sh NAME @@ -66,7 +66,7 @@ is declared in .In ndbm.h : .Bd -literal typedef struct { - char *dptr; + void *dptr; int dsize; } datum; .Ed
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605301652.u4UGqNeu070540>