From ea5ae395bef0188a0f3d85444e9ae7abb611e051 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Fri, 22 Feb 2008 22:59:18 +0000 Subject: - fix broken 'deprecated backward compatibility' - fix glibc 2.7.20 compilation (based on patch from Paul P. Konkoff) --- src/deprecated/extensions/libnetfilter_conntrack_udp.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/deprecated/extensions/libnetfilter_conntrack_udp.c') diff --git a/src/deprecated/extensions/libnetfilter_conntrack_udp.c b/src/deprecated/extensions/libnetfilter_conntrack_udp.c index c1d20c3..b20ba04 100644 --- a/src/deprecated/extensions/libnetfilter_conntrack_udp.c +++ b/src/deprecated/extensions/libnetfilter_conntrack_udp.c @@ -66,7 +66,7 @@ static int compare(struct nfct_conntrack *ct1, return 1; } -static struct nfct_proto udp = { +struct nfct_proto udp = { .name = "udp", .protonum = IPPROTO_UDP, .build_tuple_proto = build_tuple_proto, @@ -75,10 +75,3 @@ static struct nfct_proto udp = { .compare = compare, .version = VERSION, }; - -static void __attribute__ ((constructor)) init(void); - -static void init(void) -{ - nfct_register_proto(&udp); -} -- cgit v1.2.3