diff options
author | tron <tron> | 2006-01-23 18:46:00 +0000 |
---|---|---|
committer | tron <tron> | 2006-01-23 18:46:00 +0000 |
commit | bd9952e4f3eaa6c8b08490e329a64604ca6dee36 (patch) | |
tree | 545e69d728b5d10084823c9f045c5722539beff0 /net/cia/patches | |
parent | f4a5c14cebe890e41552d4e61884e962d5671e86 (diff) | |
download | pkgsrc-bd9952e4f3eaa6c8b08490e329a64604ca6dee36.tar.gz |
Add patch from CVS repository to make GCC 4.x happy. This will
hopefully fix build problems under DragonFly.
Diffstat (limited to 'net/cia/patches')
-rw-r--r-- | net/cia/patches/patch-ac | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net/cia/patches/patch-ac b/net/cia/patches/patch-ac new file mode 100644 index 00000000000..f89de44cf53 --- /dev/null +++ b/net/cia/patches/patch-ac @@ -0,0 +1,31 @@ +$NetBSD: patch-ac,v 1.1 2006/01/23 18:46:00 tron Exp $ + +Index: ipstat/config.c +=================================================================== +RCS file: /share/cvsroot/net/ipstat/ipstat/config.c,v +retrieving revision 1.6 +retrieving revision 1.7 +diff -u -r1.6 -r1.7 +--- ipstat/config.c 30 Dec 2004 21:41:39 -0000 1.6 ++++ ipstat/config.c 23 Jan 2006 13:13:56 -0000 1.7 +@@ -312,8 +312,8 @@ + { + struct in_addr *Addr,*Mask; + +- Addr=&((Type==0)?Mt->m_SrcAddr:Mt->m_DstAddr); +- Mask=&((Type==0)?Mt->m_SrcMask:Mt->m_DstMask); ++ Addr=((Type==0)?&Mt->m_SrcAddr:&Mt->m_DstAddr); ++ Mask=((Type==0)?&Mt->m_SrcMask:&Mt->m_DstMask); + if (!ParseNet(*Arg,Addr,Mask)) + { + (void)fprintf(stderr, +@@ -362,7 +362,8 @@ + return FALSE; + } + +- ((Type==3)?Mt->m_SrcPort:Mt->m_DstPort)=Port; ++ if (Type==3) Mt->m_SrcPort=Port; ++ else Mt->m_DstPort=Port; + } + } + |