pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/merkletree/files make sure __UNCONST is defin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/64a732d9446a
branches:  trunk
changeset: 363087:64a732d9446a
user:      agc <agc%pkgsrc.org@localhost>
date:      Wed May 31 23:21:06 2017 +0000

description:
make sure __UNCONST is defined before using it

diffstat:

 security/merkletree/files/libmerkle.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 8a0d772b10b1 -r 64a732d9446a security/merkletree/files/libmerkle.c
--- a/security/merkletree/files/libmerkle.c     Wed May 31 23:17:26 2017 +0000
+++ b/security/merkletree/files/libmerkle.c     Wed May 31 23:21:06 2017 +0000
@@ -38,6 +38,10 @@
 
 #define MERKLETREE_MAX_ROWS    16
 
+#ifndef __UNCONST
+#define __UNCONST(a)   ((void *)(unsigned long)(const void *)(a))
+#endif
+
 /* a row of digests in a merkle tree */
 typedef struct merkletree_row_t {
        uint64_t         outc;          /* # of output bytes */



Home | Main Index | Thread Index | Old Index