From ad969d490a7c987c48a708e6a7bef0db30f68fb9 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 29 Feb 2012 08:09:45 +0100 Subject: const-ify arguments of functions Signed-off-by: Jan Engelhardt --- src/libnetfilter_cttimeout.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libnetfilter_cttimeout.c b/src/libnetfilter_cttimeout.c index 1f7c63e..c7060ff 100644 --- a/src/libnetfilter_cttimeout.c +++ b/src/libnetfilter_cttimeout.c @@ -292,7 +292,7 @@ EXPORT_SYMBOL(nfct_timeout_policy_attr_unset); * This function returns -1 in case that some mandatory attributes are * missing. On sucess, it returns 0. */ -int nfct_timeout_snprintf(char *buf, size_t size, struct nfct_timeout *t, +int nfct_timeout_snprintf(char *buf, size_t size, const struct nfct_timeout *t, unsigned int flags) { int ret = 0; @@ -401,7 +401,8 @@ EXPORT_SYMBOL(nfct_timeout_nlmsg_build_hdr); * \param t: pointer to a conntrack timeout object */ void -nfct_timeout_nlmsg_build_payload(struct nlmsghdr *nlh, struct nfct_timeout *t) +nfct_timeout_nlmsg_build_payload(struct nlmsghdr *nlh, + const struct nfct_timeout *t) { int i; struct nlattr *nest; -- cgit v1.2.3