aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-03-25 23:07:58 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-25 23:07:58 -0400
commit1d9d752259ab2e16b99f84b7e7bd4a30c884c289 (patch)
tree2b1000c3186ebb31eb9d6e57cbba0f316a600576
parentef27559b70bd5312dfcbeab3b9ab0296206413c4 (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.h6
-rw-r--r--net/netfilter/nf_conntrack_expect.c6
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. */
76struct nf_conntrack_expect *nf_ct_expect_alloc(struct nf_conn *me); 76struct nf_conntrack_expect *nf_ct_expect_alloc(struct nf_conn *me);
77void nf_ct_expect_init(struct nf_conntrack_expect *, int, 77void 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 *);
81void nf_ct_expect_put(struct nf_conntrack_expect *exp); 81void nf_ct_expect_put(struct nf_conntrack_expect *exp);
82int nf_ct_expect_related(struct nf_conntrack_expect *expect); 82int 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)
229EXPORT_SYMBOL_GPL(nf_ct_expect_alloc); 229EXPORT_SYMBOL_GPL(nf_ct_expect_alloc);
230 230
231void nf_ct_expect_init(struct nf_conntrack_expect *exp, int family, 231void 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