summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_comment.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-05-26 13:14:06 +0200
committerJan Engelhardt <jengelh@medozas.de>2009-05-26 13:14:06 +0200
commit69f564e3890976461de0016cd81171ff8bfa8353 (patch)
tree38feb577177b07ff5e21e3838c3ec5f021748489 /extensions/libxt_comment.c
parent771871e1d9c39310cb6e2c595270d2e651309e6d (diff)
extensions: add const qualifiers in print/save functions
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libxt_comment.c')
-rw-r--r--extensions/libxt_comment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libxt_comment.c b/extensions/libxt_comment.c
index 67d7f998..5f393bbf 100644
--- a/extensions/libxt_comment.c
+++ b/extensions/libxt_comment.c
@@ -71,7 +71,7 @@ static void comment_check(unsigned int flags)
static void
comment_print(const void *ip, const struct xt_entry_match *match, int numeric)
{
- struct xt_comment_info *commentinfo = (struct xt_comment_info *)match->data;
+ struct xt_comment_info *commentinfo = (void *)match->data;
commentinfo->comment[XT_MAX_COMMENT_LEN-1] = '\0';
printf("/* %s */ ", commentinfo->comment);
@@ -81,7 +81,7 @@ comment_print(const void *ip, const struct xt_entry_match *match, int numeric)
static void
comment_save(const void *ip, const struct xt_entry_match *match)
{
- struct xt_comment_info *commentinfo = (struct xt_comment_info *)match->data;
+ struct xt_comment_info *commentinfo = (void *)match->data;
commentinfo->comment[XT_MAX_COMMENT_LEN-1] = '\0';
printf("--comment ");