diff options
author | Patrick McHardy <kaber@trash.net> | 2008-11-18 06:24:17 -0500 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-11-18 06:24:17 -0500 |
commit | e17b666a468285409ab9f6caff9df16936d27d71 (patch) | |
tree | bd2aaf5f4bc67f9f30b15c797bffef69e150b839 /net/netfilter | |
parent | d9e150071d18b5c87ba7a097af4063a5ad0c6a0c (diff) |
netfilter: nf_conntrack: fix warning and prototype mismatch
net/netfilter/nf_conntrack_core.c:46:1: warning: symbol 'nfnetlink_parse_nat_setup_hook' was not declared. Should it be static?
Including the proper header also revealed an incorrect prototype.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nf_conntrack_core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c index dc3fea09f3fc..73419de3a932 100644 --- a/net/netfilter/nf_conntrack_core.c +++ b/net/netfilter/nf_conntrack_core.c | |||
@@ -39,13 +39,13 @@ | |||
39 | #include <net/netfilter/nf_conntrack_extend.h> | 39 | #include <net/netfilter/nf_conntrack_extend.h> |
40 | #include <net/netfilter/nf_conntrack_acct.h> | 40 | #include <net/netfilter/nf_conntrack_acct.h> |
41 | #include <net/netfilter/nf_nat.h> | 41 | #include <net/netfilter/nf_nat.h> |
42 | #include <net/netfilter/nf_nat_core.h> | ||
42 | 43 | ||
43 | #define NF_CONNTRACK_VERSION "0.5.0" | 44 | #define NF_CONNTRACK_VERSION "0.5.0" |
44 | 45 | ||
45 | unsigned int | 46 | int (*nfnetlink_parse_nat_setup_hook)(struct nf_conn *ct, |
46 | (*nfnetlink_parse_nat_setup_hook)(struct nf_conn *ct, | 47 | enum nf_nat_manip_type manip, |
47 | enum nf_nat_manip_type manip, | 48 | struct nlattr *attr) __read_mostly; |
48 | struct nlattr *attr) __read_mostly; | ||
49 | EXPORT_SYMBOL_GPL(nfnetlink_parse_nat_setup_hook); | 49 | EXPORT_SYMBOL_GPL(nfnetlink_parse_nat_setup_hook); |
50 | 50 | ||
51 | DEFINE_SPINLOCK(nf_conntrack_lock); | 51 | DEFINE_SPINLOCK(nf_conntrack_lock); |