diff options
author | Jan Engelhardt <jengelh@gmx.de> | 2007-07-07 22:16:55 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-10 22:17:01 -0700 |
commit | a47362a226456d8db8207e618324a2278d05d3a7 (patch) | |
tree | 9431e971844582fd65a8cdd234cf89d72c6e4c6c /net/netfilter/xt_mark.c | |
parent | e1931b784a8de324abf310fa3b5e3f25d3988233 (diff) | |
download | linux-3.10-a47362a226456d8db8207e618324a2278d05d3a7.tar.gz linux-3.10-a47362a226456d8db8207e618324a2278d05d3a7.tar.bz2 linux-3.10-a47362a226456d8db8207e618324a2278d05d3a7.zip |
[NETFILTER]: add some consts, remove some casts
Make a number of variables const and/or remove unneeded casts.
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/xt_mark.c')
-rw-r--r-- | net/netfilter/xt_mark.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/xt_mark.c b/net/netfilter/xt_mark.c index 83ed806764b..b8ab79452f0 100644 --- a/net/netfilter/xt_mark.c +++ b/net/netfilter/xt_mark.c @@ -60,7 +60,7 @@ struct compat_xt_mark_info { static void compat_from_user(void *dst, void *src) { - struct compat_xt_mark_info *cm = src; + const struct compat_xt_mark_info *cm = src; struct xt_mark_info m = { .mark = cm->mark, .mask = cm->mask, @@ -71,7 +71,7 @@ static void compat_from_user(void *dst, void *src) static int compat_to_user(void __user *dst, void *src) { - struct xt_mark_info *m = src; + const struct xt_mark_info *m = src; struct compat_xt_mark_info cm = { .mark = m->mark, .mask = m->mask, |