svn commit: r300999 - in head: include lib/libc/db/man

Ed Schouten ed at FreeBSD.org
Mon May 30 16:52:24 UTC 2016


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


More information about the svn-src-head mailing list