freebsd-ports/security/qtfw/files/patch-fwrule.cpp
Alexey Dokuchaev 020cd99802 Fix the code so GCC 3.4.2 likes it better, and unbreak.
Reported by:	kris
Approved by:	portmgr (krion), fjoe (mentor, implicit)
2004-10-06 04:57:17 +00:00

19 lines
394 B
C++

--- fwrule.cpp.orig Fri Feb 14 13:36:27 2003
+++ fwrule.cpp Fri Feb 14 13:36:33 2003
@@ -5,6 +5,7 @@
#include <sys/param.h>
#include <ctype.h>
#include <netdb.h>
+#include <netinet/in.h>
#define IPPROTO_IP 0
@@ -547,7 +547,7 @@
nCurrentIndex++;
ac++;
}
- av = new (char*)[ac];
+ av = new char*[ac];
/* Now fill the av[] array */
for (int i =0;i < ac;i++)