summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorrillig <rillig>2007-03-10 00:59:28 +0000
committerrillig <rillig>2007-03-10 00:59:28 +0000
commit2007269dc4138785c552bb9e457359d237967b46 (patch)
tree18fede8f176ec03519b210499b59a64432300a88 /net
parent3963e63f4d58b77f60d627e21690e127e3b2da9e (diff)
downloadpkgsrc-2007269dc4138785c552bb9e457359d237967b46.tar.gz
Don't mix variable declarations and code. gcc said:
mDNSUNP.c:243: parse error before `char'
Diffstat (limited to 'net')
-rw-r--r--net/mDNSResponder/distinfo4
-rw-r--r--net/mDNSResponder/patches/patch-ac23
2 files changed, 22 insertions, 5 deletions
diff --git a/net/mDNSResponder/distinfo b/net/mDNSResponder/distinfo
index c17f4122d08..7f781c38b09 100644
--- a/net/mDNSResponder/distinfo
+++ b/net/mDNSResponder/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.14 2006/10/23 11:15:09 markd Exp $
+$NetBSD: distinfo,v 1.15 2007/03/10 00:59:28 rillig Exp $
SHA1 (mDNSResponder-108.tar.gz) = d51509077be75ec8ba49c805fef701c3370428fc
RMD160 (mDNSResponder-108.tar.gz) = 3a1961f3267bcf009b52c8d8ce234ee6045aeed2
Size (mDNSResponder-108.tar.gz) = 1362840 bytes
SHA1 (patch-aa) = 3e8dec4b8d28ed633818edcdea57881dcbb466dc
SHA1 (patch-ab) = 4903e995df9e895bb1cfc49f7fa0c17c8a5379db
-SHA1 (patch-ac) = 1cdb0b309346719cbf771c8593516969554612d7
+SHA1 (patch-ac) = 0613bd07f6626e5c06a3584bef8f2372dfef319a
diff --git a/net/mDNSResponder/patches/patch-ac b/net/mDNSResponder/patches/patch-ac
index f9269d33238..3e0cd44b478 100644
--- a/net/mDNSResponder/patches/patch-ac
+++ b/net/mDNSResponder/patches/patch-ac
@@ -1,7 +1,7 @@
-$NetBSD: patch-ac,v 1.4 2006/10/23 11:15:09 markd Exp $
+$NetBSD: patch-ac,v 1.5 2007/03/10 00:59:28 rillig Exp $
---- mDNSPosix/mDNSUNP.c.orig 2006-02-21 10:40:36.000000000 +1300
-+++ mDNSPosix/mDNSUNP.c
+--- mDNSPosix/mDNSUNP.c.orig 2006-02-20 22:40:36.000000000 +0100
++++ mDNSPosix/mDNSUNP.c 2007-03-10 01:50:52.000000000 +0100
@@ -153,7 +153,10 @@ First checkin
#include <net/if_dl.h>
#endif
@@ -14,3 +14,20 @@ $NetBSD: patch-ac,v 1.4 2006/10/23 11:15:09 markd Exp $
#include <netinet6/in6_var.h>
#endif
+@@ -203,6 +206,8 @@ struct ifi_info *get_ifi_info_linuxv6(in
+ addr[4],addr[5],addr[6],addr[7],
+ &index, &plen, &scope, &flags, ifname) != EOF) {
+
++ char ipv6addr[INET6_ADDRSTRLEN];
++
+ myflags = 0;
+ if (strncmp(lastname, ifname, IFNAMSIZ) == 0) {
+ if (doaliases == 0)
+@@ -237,7 +242,6 @@ struct ifi_info *get_ifi_info_linuxv6(in
+ memcpy(ifi->ifi_addr, res0->ai_addr, sizeof(struct sockaddr_in6));
+
+ /* Add netmask of the interface */
+- char ipv6addr[INET6_ADDRSTRLEN];
+ plen_to_mask(plen, ipv6addr);
+ ifi->ifi_netmask = calloc(1, sizeof(struct sockaddr_in6));
+ if (ifi->ifi_addr == NULL) {