diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-06-26 02:23:19 -0400 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-02-15 10:59:28 -0500 |
commit | 739674fb7febf116e7d647031fab16989a08a965 (patch) | |
tree | b2b0bcde6aa93dfc7a9811da7805affcef225a2a /net/ipv6 | |
parent | b402405d71beed8e4df354844353f66b4e18269f (diff) |
netfilter: xtables: constify args in compat copying functions
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/ip6_tables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index dcd7825fe7b6..3ff4fd50e96e 100644 --- a/net/ipv6/netfilter/ip6_tables.c +++ b/net/ipv6/netfilter/ip6_tables.c | |||
@@ -1079,7 +1079,7 @@ copy_entries_to_user(unsigned int total_size, | |||
1079 | } | 1079 | } |
1080 | 1080 | ||
1081 | #ifdef CONFIG_COMPAT | 1081 | #ifdef CONFIG_COMPAT |
1082 | static void compat_standard_from_user(void *dst, void *src) | 1082 | static void compat_standard_from_user(void *dst, const void *src) |
1083 | { | 1083 | { |
1084 | int v = *(compat_int_t *)src; | 1084 | int v = *(compat_int_t *)src; |
1085 | 1085 | ||
@@ -1088,7 +1088,7 @@ static void compat_standard_from_user(void *dst, void *src) | |||
1088 | memcpy(dst, &v, sizeof(v)); | 1088 | memcpy(dst, &v, sizeof(v)); |
1089 | } | 1089 | } |
1090 | 1090 | ||
1091 | static int compat_standard_to_user(void __user *dst, void *src) | 1091 | static int compat_standard_to_user(void __user *dst, const void *src) |
1092 | { | 1092 | { |
1093 | compat_int_t cv = *(int *)src; | 1093 | compat_int_t cv = *(int *)src; |
1094 | 1094 | ||