diff options
author | Max Kellermann <max@duempel.org> | 2008-01-29 13:48:05 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-01-29 13:48:05 +0000 |
commit | 9ee386a1b6d7704b259460152c959ab0e79e02aa (patch) | |
tree | 13f39ec579024d42beb0ce6509b0c935dbe8ca03 /extensions/libxt_statistic.c | |
parent | fe05c768f877bcc69c13d7a9cb1d2b33ef56f600 (diff) |
fix gcc warnings
Max Kellermann <max@duempel.org>
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 1b34527b..19bb121d 100644 --- a/extensions/libxt_statistic.c +++ b/extensions/libxt_statistic.c @@ -27,7 +27,7 @@ static const struct option statistic_opts[] = { { "probability", 1, NULL, '2' }, { "every", 1, NULL, '3' }, { "packet", 1, NULL, '4' }, - { } + { .name = NULL } }; static struct xt_statistic_info *info; @@ -113,7 +113,7 @@ static void statistic_check(unsigned int flags) exit_error(PARAMETER_PROBLEM, "--packet can only be used with --every"); /* at this point, info->u.nth.every have been decreased. */ - if (!(info->u.nth.packet >= 0 && info->u.nth.packet <= info->u.nth.every)) + if (info->u.nth.packet > info->u.nth.every) exit_error(PARAMETER_PROBLEM, "the --packet p must be 0 <= p <= n-1"); |