pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files/db/hash Define __UNCONST. F...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/905455a14c9b
branches:  trunk
changeset: 549262:905455a14c9b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Oct 30 19:27:20 2008 +0000

description:
Define __UNCONST. From PR 39797.

diffstat:

 pkgtools/libnbcompat/files/db/hash/hash.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 8ac210596784 -r 905455a14c9b pkgtools/libnbcompat/files/db/hash/hash.c
--- a/pkgtools/libnbcompat/files/db/hash/hash.c Thu Oct 30 18:56:22 2008 +0000
+++ b/pkgtools/libnbcompat/files/db/hash/hash.c Thu Oct 30 19:27:20 2008 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hash.c,v 1.1 2008/10/10 00:21:43 joerg Exp $   */
+/*     $NetBSD: hash.c,v 1.2 2008/10/30 19:27:20 joerg Exp $   */
 /*     NetBSD: hash.c,v 1.30 2008/09/11 12:58:00 joerg Exp     */
 
 /*-
@@ -36,9 +36,9 @@
 #include <nbcompat.h>
 #include <nbcompat/cdefs.h>
 
-__RCSID("$NetBSD: hash.c,v 1.1 2008/10/10 00:21:43 joerg Exp $");
+__RCSID("$NetBSD: hash.c,v 1.2 2008/10/30 19:27:20 joerg Exp $");
 
-#include <sys/param.h>
+#include <nbcompat/param.h>
 #include <sys/stat.h>
 
 #include <errno.h>
@@ -54,6 +54,8 @@
 #include "page.h"
 #include "extern.h"
 
+#define __UNCONST(a)   ((void *)(size_t)(const void *)(a))
+
 static int   alloc_segs(HTAB *, int);
 static int   flush_meta(HTAB *);
 static int   hash_access(HTAB *, ACTION, DBT *, DBT *);



Home | Main Index | Thread Index | Old Index