From 69f564e3890976461de0016cd81171ff8bfa8353 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 26 May 2009 13:14:06 +0200 Subject: extensions: add const qualifiers in print/save functions Signed-off-by: Jan Engelhardt --- extensions/libxt_physdev.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'extensions/libxt_physdev.c') diff --git a/extensions/libxt_physdev.c b/extensions/libxt_physdev.c index c87779bb..5522a325 100644 --- a/extensions/libxt_physdev.c +++ b/extensions/libxt_physdev.c @@ -114,8 +114,7 @@ static void physdev_check(unsigned int flags) static void physdev_print(const void *ip, const struct xt_entry_match *match, int numeric) { - struct xt_physdev_info *info = - (struct xt_physdev_info*)match->data; + const struct xt_physdev_info *info = (const void *)match->data; printf("PHYSDEV match"); if (info->bitmask & XT_PHYSDEV_OP_ISIN) @@ -139,8 +138,7 @@ physdev_print(const void *ip, const struct xt_entry_match *match, int numeric) static void physdev_save(const void *ip, const struct xt_entry_match *match) { - struct xt_physdev_info *info = - (struct xt_physdev_info*)match->data; + const struct xt_physdev_info *info = (const void *)match->data; if (info->bitmask & XT_PHYSDEV_OP_ISIN) printf("%s--physdev-is-in ", -- cgit v1.2.3