diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-02-11 00:33:30 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-04-06 17:43:13 +0200 |
commit | dbb77543ad6afe29e9a1881b2d4fc212de621a55 (patch) | |
tree | 52cdf11fded05c39431fc612891253044d0ee9f2 /extensions/libxt_RATEEST.c | |
parent | 7a236f4cc685a420c1a782a5db614a93baf37ccf (diff) |
Fix -Wshadow warnings and clean up xt_sctp.h
Note: xt_sctp.h is still not merged upstream in the kernel as of
this commit. But a refactoring was really needed.
Diffstat (limited to 'extensions/libxt_RATEEST.c')
-rw-r--r-- | extensions/libxt_RATEEST.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/libxt_RATEEST.c b/extensions/libxt_RATEEST.c index 18716574..4f52c2eb 100644 --- a/extensions/libxt_RATEEST.c +++ b/extensions/libxt_RATEEST.c @@ -177,17 +177,17 @@ static void __RATEEST_print(const struct xt_entry_target *target, const char *prefix) { struct xt_rateest_target_info *info = (void *)target->data; - unsigned int interval; - unsigned int ewma_log; + unsigned int local_interval; + unsigned int local_ewma_log; - interval = (TIME_UNITS_PER_SEC << (info->interval + 2)) / 4; - ewma_log = interval * (1 << (info->ewma_log)); + local_interval = (TIME_UNITS_PER_SEC << (info->interval + 2)) / 4; + local_ewma_log = local_interval * (1 << (info->ewma_log)); printf("%sname %s ", prefix, info->name); printf("%sinterval ", prefix); - RATEEST_print_time(interval); + RATEEST_print_time(local_interval); printf("%sewmalog ", prefix); - RATEEST_print_time(ewma_log); + RATEEST_print_time(local_ewma_log); } static void |