diff options
author | Patrick McHardy <kaber@trash.net> | 2008-03-25 23:07:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-25 23:07:58 -0400 |
commit | 1d9d752259ab2e16b99f84b7e7bd4a30c884c289 (patch) | |
tree | 2b1000c3186ebb31eb9d6e57cbba0f316a600576 | |
parent | ef27559b70bd5312dfcbeab3b9ab0296206413c4 (diff) |
[NETFILTER]: nf_conntrack_expect: constify nf_ct_expect_init arguments
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/netfilter/nf_conntrack_expect.h | 6 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_expect.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/net/netfilter/nf_conntrack_expect.h b/include/net/netfilter/nf_conntrack_expect.h index cb608a1b44e5..f1bdcb4f3f2a 100644 --- a/include/net/netfilter/nf_conntrack_expect.h +++ b/include/net/netfilter/nf_conntrack_expect.h | |||
@@ -75,9 +75,9 @@ void nf_ct_unexpect_related(struct nf_conntrack_expect *exp); | |||
75 | nf_ct_expect_related. You will have to call put afterwards. */ | 75 | nf_ct_expect_related. You will have to call put afterwards. */ |
76 | struct nf_conntrack_expect *nf_ct_expect_alloc(struct nf_conn *me); | 76 | struct nf_conntrack_expect *nf_ct_expect_alloc(struct nf_conn *me); |
77 | void nf_ct_expect_init(struct nf_conntrack_expect *, int, | 77 | void nf_ct_expect_init(struct nf_conntrack_expect *, int, |
78 | union nf_inet_addr *, | 78 | const union nf_inet_addr *, |
79 | union nf_inet_addr *, | 79 | const union nf_inet_addr *, |
80 | u_int8_t, __be16 *, __be16 *); | 80 | u_int8_t, const __be16 *, const __be16 *); |
81 | void nf_ct_expect_put(struct nf_conntrack_expect *exp); | 81 | void nf_ct_expect_put(struct nf_conntrack_expect *exp); |
82 | int nf_ct_expect_related(struct nf_conntrack_expect *expect); | 82 | int nf_ct_expect_related(struct nf_conntrack_expect *expect); |
83 | 83 | ||
diff --git a/net/netfilter/nf_conntrack_expect.c b/net/netfilter/nf_conntrack_expect.c index 684ec9c1ad38..740d94d30091 100644 --- a/net/netfilter/nf_conntrack_expect.c +++ b/net/netfilter/nf_conntrack_expect.c | |||
@@ -229,9 +229,9 @@ struct nf_conntrack_expect *nf_ct_expect_alloc(struct nf_conn *me) | |||
229 | EXPORT_SYMBOL_GPL(nf_ct_expect_alloc); | 229 | EXPORT_SYMBOL_GPL(nf_ct_expect_alloc); |
230 | 230 | ||
231 | void nf_ct_expect_init(struct nf_conntrack_expect *exp, int family, | 231 | void nf_ct_expect_init(struct nf_conntrack_expect *exp, int family, |
232 | union nf_inet_addr *saddr, | 232 | const union nf_inet_addr *saddr, |
233 | union nf_inet_addr *daddr, | 233 | const union nf_inet_addr *daddr, |
234 | u_int8_t proto, __be16 *src, __be16 *dst) | 234 | u_int8_t proto, const __be16 *src, const __be16 *dst) |
235 | { | 235 | { |
236 | int len; | 236 | int len; |
237 | 237 | ||