pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/chrony Fixed gcc4 build failure.
details: https://anonhg.NetBSD.org/pkgsrc/rev/e8ccc845f0a9
branches: trunk
changeset: 535998:e8ccc845f0a9
user: rillig <rillig%pkgsrc.org@localhost>
date: Fri Nov 30 22:53:54 2007 +0000
description:
Fixed gcc4 build failure.
diffstat:
net/chrony/distinfo | 3 ++-
net/chrony/patches/patch-ah | 33 +++++++++++++++++++++++++++++++++
2 files changed, 35 insertions(+), 1 deletions(-)
diffs (51 lines):
diff -r 9b19490c2955 -r e8ccc845f0a9 net/chrony/distinfo
--- a/net/chrony/distinfo Fri Nov 30 22:45:16 2007 +0000
+++ b/net/chrony/distinfo Fri Nov 30 22:53:54 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2006/01/08 13:27:53 joerg Exp $
+$NetBSD: distinfo,v 1.5 2007/11/30 22:53:54 rillig Exp $
SHA1 (chrony-1.20.tar.gz) = 8a739038b208bf63e4d0afbee44e8fea3c9aa480
RMD160 (chrony-1.20.tar.gz) = ec6f570c29b68983752ff8b025d908372bdf2fb1
@@ -10,3 +10,4 @@
SHA1 (patch-ae) = f55536cf3be9c9fc55345a3d21b88500e30807ad
SHA1 (patch-af) = 3d09c0aba56bdce704a923ae7c15673cdb6a7489
SHA1 (patch-ag) = 4616fdfed44467d48962303b8e34ca96b6ac0fc5
+SHA1 (patch-ah) = da3edfff06381b2d028faa1a6d2f1a79da818404
diff -r 9b19490c2955 -r e8ccc845f0a9 net/chrony/patches/patch-ah
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/chrony/patches/patch-ah Fri Nov 30 22:53:54 2007 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-ah,v 1.1 2007/11/30 22:53:54 rillig Exp $
+
+Resolved recursive data type.
+
+--- addrfilt.c.orig 2002-02-28 23:27:08.000000000 +0000
++++ addrfilt.c 2007-11-30 22:49:50.000000000 +0000
+@@ -43,15 +43,11 @@
+ /* Define the table size */
+ #define TABLE_SIZE (1UL<<NBITS)
+
+-struct _TableNode;
+-
+-typedef struct _TableNode ExtendedTable[TABLE_SIZE];
+-
+ typedef enum {DENY, ALLOW, AS_PARENT} State;
+
+-typedef struct _TableNode {
++typedef struct TableNode {
+ State state;
+- ExtendedTable *extended;
++ struct TableNode **extended; /* [TABLE_SIZE] */
+ } TableNode;
+
+ struct ADF_AuthTableInst {
+@@ -124,7 +120,7 @@ open_node(TableNode *node)
+
+ if (node->extended == NULL) {
+
+- node->extended = MallocNew(ExtendedTable);
++ node->extended = malloc(sizeof(*node->extended) * TABLE_SIZE);
+
+ for (i=0; i<TABLE_SIZE; i++) {
+ child_node = &((*(node->extended))[i]);
Home |
Main Index |
Thread Index |
Old Index