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/libipt_SAME.c | |
parent | fe05c768f877bcc69c13d7a9cb1d2b33ef56f600 (diff) |
fix gcc warnings
Max Kellermann <max@duempel.org>
Diffstat (limited to 'extensions/libipt_SAME.c')
-rw-r--r-- | extensions/libipt_SAME.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/libipt_SAME.c b/extensions/libipt_SAME.c index 6aaac99a..e03ae80d 100644 --- a/extensions/libipt_SAME.c +++ b/extensions/libipt_SAME.c @@ -32,7 +32,7 @@ static const struct option SAME_opts[] = { { "to", 1, NULL, '1' }, { "nodst", 0, NULL, '2'}, { "random", 0, NULL, '3' }, - { } + { .name = NULL } }; /* Initialize the target. */ @@ -90,7 +90,7 @@ static int SAME_parse(int c, char **argv, int invert, unsigned int *flags, { struct ipt_same_info *mr = (struct ipt_same_info *)(*target)->data; - int count; + unsigned count; switch (c) { case '1': @@ -146,7 +146,7 @@ static void SAME_check(unsigned int flags) static void SAME_print(const void *ip, const struct xt_entry_target *target, int numeric) { - int count; + unsigned count; struct ipt_same_info *mr = (struct ipt_same_info *)target->data; int random = 0; @@ -180,7 +180,7 @@ static void SAME_print(const void *ip, const struct xt_entry_target *target, /* Saves the union ipt_targinfo in parsable form to stdout. */ static void SAME_save(const void *ip, const struct xt_entry_target *target) { - int count; + unsigned count; struct ipt_same_info *mr = (struct ipt_same_info *)target->data; int random = 0; |