From 27ee6a0f1255cb6c7dadc55caf3928fd62354314 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 7 Dec 2008 12:03:42 +0100 Subject: netlink: constify conntrack object parameter of nl_*_conntrack() This patch constifies the first parameter, which is a conntrack object, in all nl_*_conntrack() functions. Signed-off-by: Pablo Neira Ayuso --- include/netlink.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/netlink.h b/include/netlink.h index 7e2b94c..af98c5e 100644 --- a/include/netlink.h +++ b/include/netlink.h @@ -20,15 +20,15 @@ void nl_resize_socket_buffer(struct nfct_handle *h); int nl_dump_conntrack_table(void); -int nl_exist_conntrack(struct nf_conntrack *ct); +int nl_exist_conntrack(const struct nf_conntrack *ct); -int nl_get_conntrack(struct nf_conntrack *ct); +int nl_get_conntrack(const struct nf_conntrack *ct); int nl_create_conntrack(const struct nf_conntrack *ct); int nl_update_conntrack(const struct nf_conntrack *ct); -int nl_destroy_conntrack(struct nf_conntrack *ct); +int nl_destroy_conntrack(const struct nf_conntrack *ct); static inline int ct_is_related(const struct nf_conntrack *ct) { -- cgit v1.2.3