summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_TCPOPTSTRIP.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-01-29 13:48:05 +0000
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-01-29 13:48:05 +0000
commit0d199bb941aac7052a19dd5d75520d016fff1765 (patch)
tree13f39ec579024d42beb0ce6509b0c935dbe8ca03 /extensions/libxt_TCPOPTSTRIP.c
parent4e7cb355f8e82e7d4d7c6bf6dd36a6d860a3e70f (diff)
[PATCH]: fix gcc warnings
Max Kellermann <max@duempel.org>
Diffstat (limited to 'extensions/libxt_TCPOPTSTRIP.c')
-rw-r--r--extensions/libxt_TCPOPTSTRIP.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/libxt_TCPOPTSTRIP.c b/extensions/libxt_TCPOPTSTRIP.c
index c3d558d..df107f4 100644
--- a/extensions/libxt_TCPOPTSTRIP.c
+++ b/extensions/libxt_TCPOPTSTRIP.c
@@ -22,12 +22,12 @@ enum {
struct tcp_optionmap {
const char *name, *desc;
- const int option;
+ const unsigned option;
};
static const struct option tcpoptstrip_tg_opts[] = {
{.name = "strip-options", .has_arg = true, .val = 's'},
- {},
+ { .name = NULL }
};
static const struct tcp_optionmap tcp_optionmap[] = {
@@ -37,7 +37,7 @@ static const struct tcp_optionmap tcp_optionmap[] = {
{"sack", "Selective ACK", TCPOPT_SACK},
{"timestamp", "Timestamp", TCPOPT_TIMESTAMP},
{"md5", "MD5 signature", TCPOPT_MD5SIG},
- {NULL},
+ { .name = NULL }
};
static void tcpoptstrip_tg_help(void)