diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-12-07 12:03:42 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-12-07 12:03:42 +0100 |
commit | 27ee6a0f1255cb6c7dadc55caf3928fd62354314 (patch) | |
tree | 60c311b58284f6a2ad8d79919eac58e4aec5d61f /include | |
parent | 2676982afacd502f3119cd323d060bbb88446057 (diff) | |
download | conntrack-tools-27ee6a0f1255cb6c7dadc55caf3928fd62354314.tar.gz conntrack-tools-27ee6a0f1255cb6c7dadc55caf3928fd62354314.zip |
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 <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink.h | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |