[Bug 20] problems with static linking of iptables-1.2.7

bugzilla-daemon@netfilter.org bugzilla-daemon@netfilter.org
Thu, 06 Mar 2003 11:20:31 +0100


https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=20





------- Additional Comments From ratz@tac.ch  2003-03-06 11:20 -------
This seems to have been fixed now. I've tested it with
IPTABLES_VERSION="1.2.7a-20030305". It compiled fine, although a few warnings
showed up. In case you're interested:

--- iptables-1.2.7a-20030305/iptables-restore.c	Mon Mar  3 09:08:37 2003
+++ iptables-1.2.7a-20030305-ratz/iptables-restore.c	Thu Mar  6 11:13:26 2003@@
-155,7 +155,7 @@
 	
 	/* Grab standard input. */
 	while (fgets(buffer, sizeof(buffer), in)) {
-		int ret;
+		int ret = 0;
 
 		line++;
 		if (buffer[0] == '\n') continue;
diff -ur iptables-1.2.7a-20030305/iptables.c
iptables-1.2.7a-20030305-ratz/iptables.c
--- iptables-1.2.7a-20030305/iptables.c	Mon Mar  3 09:08:37 2003
+++ iptables-1.2.7a-20030305-ratz/iptables.c	Thu Mar  6 11:11:06 2003
@@ -336,7 +336,7 @@
 void
 exit_tryhelp(int status)
 {
-	if (line =! -1)
+	if (line != -1)
 		fprintf(stderr, "Error occured at line: %d\n", line);
 	fprintf(stderr, "Try `%s -h' or '%s --help' for more information.\n",
 			program_name, program_name );



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.