diff options
author | Patrick McHardy <kaber@trash.net> | 2009-08-25 10:07:40 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2009-08-25 10:07:40 -0400 |
commit | 3a6c2b419b7768703cfb2cabdb894517c5065e33 (patch) | |
tree | d8d8dc9ad34ffdd2f0f56876e9d3b6f0e6d5eceb /net | |
parent | 74f7a6552c8d76ffc5e11eb8d9d6c07238b9ae77 (diff) |
netlink: constify nlmsghdr arguments
Consitfy nlmsghdr arguments to a couple of functions as preparation
for the next patch, which will constify the netlink message data in
all nfnetlink users.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/netlink/af_netlink.c | 2 | ||||
-rw-r--r-- | net/sched/act_api.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index da3163d15ef0..d0ff382c40ca 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -1705,7 +1705,7 @@ errout: | |||
1705 | } | 1705 | } |
1706 | 1706 | ||
1707 | int netlink_dump_start(struct sock *ssk, struct sk_buff *skb, | 1707 | int netlink_dump_start(struct sock *ssk, struct sk_buff *skb, |
1708 | struct nlmsghdr *nlh, | 1708 | const struct nlmsghdr *nlh, |
1709 | int (*dump)(struct sk_buff *skb, | 1709 | int (*dump)(struct sk_buff *skb, |
1710 | struct netlink_callback *), | 1710 | struct netlink_callback *), |
1711 | int (*done)(struct netlink_callback *)) | 1711 | int (*done)(struct netlink_callback *)) |
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 9d03cc33b6cc..2dfb3e7a040d 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c | |||
@@ -1011,7 +1011,7 @@ replay: | |||
1011 | } | 1011 | } |
1012 | 1012 | ||
1013 | static struct nlattr * | 1013 | static struct nlattr * |
1014 | find_dump_kind(struct nlmsghdr *n) | 1014 | find_dump_kind(const struct nlmsghdr *n) |
1015 | { | 1015 | { |
1016 | struct nlattr *tb1, *tb2[TCA_ACT_MAX+1]; | 1016 | struct nlattr *tb1, *tb2[TCA_ACT_MAX+1]; |
1017 | struct nlattr *tb[TCA_ACT_MAX_PRIO + 1]; | 1017 | struct nlattr *tb[TCA_ACT_MAX_PRIO + 1]; |