aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-06-26 02:23:19 -0400
committerJan Engelhardt <jengelh@medozas.de>2010-02-15 10:59:28 -0500
commit739674fb7febf116e7d647031fab16989a08a965 (patch)
treeb2b0bcde6aa93dfc7a9811da7805affcef225a2a /include
parentb402405d71beed8e4df354844353f66b4e18269f (diff)
netfilter: xtables: constify args in compat copying functions
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netfilter/x_tables.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h
index a0a144a6c6d9..c61758f4be31 100644
--- a/include/linux/netfilter/x_tables.h
+++ b/include/linux/netfilter/x_tables.h
@@ -286,8 +286,8 @@ struct xt_match {
286 void (*destroy)(const struct xt_mtdtor_param *); 286 void (*destroy)(const struct xt_mtdtor_param *);
287#ifdef CONFIG_COMPAT 287#ifdef CONFIG_COMPAT
288 /* Called when userspace align differs from kernel space one */ 288 /* Called when userspace align differs from kernel space one */
289 void (*compat_from_user)(void *dst, void *src); 289 void (*compat_from_user)(void *dst, const void *src);
290 int (*compat_to_user)(void __user *dst, void *src); 290 int (*compat_to_user)(void __user *dst, const void *src);
291#endif 291#endif
292 /* Set this to THIS_MODULE if you are a module, otherwise NULL */ 292 /* Set this to THIS_MODULE if you are a module, otherwise NULL */
293 struct module *me; 293 struct module *me;
@@ -328,8 +328,8 @@ struct xt_target {
328 void (*destroy)(const struct xt_tgdtor_param *); 328 void (*destroy)(const struct xt_tgdtor_param *);
329#ifdef CONFIG_COMPAT 329#ifdef CONFIG_COMPAT
330 /* Called when userspace align differs from kernel space one */ 330 /* Called when userspace align differs from kernel space one */
331 void (*compat_from_user)(void *dst, void *src); 331 void (*compat_from_user)(void *dst, const void *src);
332 int (*compat_to_user)(void __user *dst, void *src); 332 int (*compat_to_user)(void __user *dst, const void *src);
333#endif 333#endif
334 /* Set this to THIS_MODULE if you are a module, otherwise NULL */ 334 /* Set this to THIS_MODULE if you are a module, otherwise NULL */
335 struct module *me; 335 struct module *me;
@@ -593,13 +593,13 @@ extern short xt_compat_calc_jump(u_int8_t af, unsigned int offset);
593extern int xt_compat_match_offset(const struct xt_match *match); 593extern int xt_compat_match_offset(const struct xt_match *match);
594extern int xt_compat_match_from_user(struct xt_entry_match *m, 594extern int xt_compat_match_from_user(struct xt_entry_match *m,
595 void **dstptr, unsigned int *size); 595 void **dstptr, unsigned int *size);
596extern int xt_compat_match_to_user(struct xt_entry_match *m, 596extern int xt_compat_match_to_user(const struct xt_entry_match *m,
597 void __user **dstptr, unsigned int *size); 597 void __user **dstptr, unsigned int *size);
598 598
599extern int xt_compat_target_offset(const struct xt_target *target); 599extern int xt_compat_target_offset(const struct xt_target *target);
600extern void xt_compat_target_from_user(struct xt_entry_target *t, 600extern void xt_compat_target_from_user(struct xt_entry_target *t,
601 void **dstptr, unsigned int *size); 601 void **dstptr, unsigned int *size);
602extern int xt_compat_target_to_user(struct xt_entry_target *t, 602extern int xt_compat_target_to_user(const struct xt_entry_target *t,
603 void __user **dstptr, unsigned int *size); 603 void __user **dstptr, unsigned int *size);
604 604
605#endif /* CONFIG_COMPAT */ 605#endif /* CONFIG_COMPAT */