[PATCH] ipt_osf: module revision fixup

Bill Rugolsky Jr. brugolsky at telemetry-investments.com
Fri Jan 7 03:24:59 CET 2005


Use C99 initializers to allow for new match revision field.

Signed-off-by: Bill Rugolsky <brugolsky at telemetry-investments.com>

--- patch-o-matic-ng/osf/linux-2.6/net/ipv4/netfilter/ipt_osf.c.revision	2004-11-24 10:19:50.000000000 -0500
+++ patch-o-matic-ng/osf/linux-2.6/net/ipv4/netfilter/ipt_osf.c	2005-01-06 20:37:36.000000000 -0500
@@ -83,14 +83,11 @@
 static unsigned long seq, ipt_osf_groups = 1;
 static struct sock *nts;
 
-static struct ipt_match osf_match = 
-{ 
-	{ NULL, NULL }, 
-	"osf", 
-	&match, 
-	&checkentry, 
-	NULL, 
-	THIS_MODULE 
+static struct ipt_match osf_match = { 
+	.name = "osf", 
+	.match = &match, 
+	.checkentry = &checkentry, 
+	.me = THIS_MODULE 
 };
 
 static void ipt_osf_nlsend(struct osf_finger *f, const struct sk_buff *sk)



More information about the netfilter-devel mailing list