diff options
Diffstat (limited to 'extensions/libxt_statistic.c')
-rw-r--r-- | extensions/libxt_statistic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libxt_statistic.c b/extensions/libxt_statistic.c index fa044adf..5b036864 100644 --- a/extensions/libxt_statistic.c +++ b/extensions/libxt_statistic.c @@ -146,7 +146,7 @@ static void print_match(const struct xt_statistic_info *info, char *prefix) static void statistic_print(const void *ip, const struct xt_entry_match *match, int numeric) { - struct xt_statistic_info *info = (struct xt_statistic_info *)match->data; + const struct xt_statistic_info *info = (const void *)match->data; printf("statistic "); print_match(info, ""); @@ -154,7 +154,7 @@ statistic_print(const void *ip, const struct xt_entry_match *match, int numeric) static void statistic_save(const void *ip, const struct xt_entry_match *match) { - struct xt_statistic_info *info = (struct xt_statistic_info *)match->data; + const struct xt_statistic_info *info = (const void *)match->data; print_match(info, "--"); } |