diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-05-26 13:14:06 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-05-26 13:14:06 +0200 |
commit | 69f564e3890976461de0016cd81171ff8bfa8353 (patch) | |
tree | 38feb577177b07ff5e21e3838c3ec5f021748489 /extensions/libxt_hashlimit.c | |
parent | 771871e1d9c39310cb6e2c595270d2e651309e6d (diff) | |
download | iptables-69f564e3890976461de0016cd81171ff8bfa8353.tar.gz |
extensions: add const qualifiers in print/save functions
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libxt_hashlimit.c')
-rw-r--r-- | extensions/libxt_hashlimit.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/extensions/libxt_hashlimit.c b/extensions/libxt_hashlimit.c index 9a7e5ded..aa56c652 100644 --- a/extensions/libxt_hashlimit.c +++ b/extensions/libxt_hashlimit.c @@ -525,8 +525,7 @@ static void print_mode(unsigned int mode, char separator) static void hashlimit_print(const void *ip, const struct xt_entry_match *match, int numeric) { - struct xt_hashlimit_info *r = - (struct xt_hashlimit_info *)match->data; + const struct xt_hashlimit_info *r = (const void *)match->data; fputs("limit: avg ", stdout); print_rate(r->cfg.avg); printf("burst %u ", r->cfg.burst); fputs("mode ", stdout); @@ -590,8 +589,7 @@ hashlimit_mt6_print(const void *ip, const struct xt_entry_match *match, static void hashlimit_save(const void *ip, const struct xt_entry_match *match) { - struct xt_hashlimit_info *r = - (struct xt_hashlimit_info *)match->data; + const struct xt_hashlimit_info *r = (const void *)match->data; fputs("--hashlimit ", stdout); print_rate(r->cfg.avg); if (r->cfg.burst != XT_HASHLIMIT_BURST) |