summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_time.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-08-03 17:21:18 +0200
committerPatrick McHardy <kaber@trash.net>2010-08-03 17:21:18 +0200
commita653f2936c56bfc541f13a7888484d5ae21c057a (patch)
tree6cd810640b26d9c3c330c4538424edbcc5570285 /extensions/libxt_time.c
parentd8b511ed36f00280dd141e59c08874c7fb116504 (diff)
parent422342e47c18e70757231f2210b13df8e1f5931c (diff)
Merge branch 'iptables-next'
Diffstat (limited to 'extensions/libxt_time.c')
-rw-r--r--extensions/libxt_time.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/extensions/libxt_time.c b/extensions/libxt_time.c
index 098fc9c9..9f12266b 100644
--- a/extensions/libxt_time.c
+++ b/extensions/libxt_time.c
@@ -38,15 +38,15 @@ static const char *const week_days[] = {
};
static const struct option time_opts[] = {
- {"datestart", true, NULL, 'D'},
- {"datestop", true, NULL, 'E'},
- {"timestart", true, NULL, 'X'},
- {"timestop", true, NULL, 'Y'},
- {"weekdays", true, NULL, 'w'},
- {"monthdays", true, NULL, 'm'},
- {"localtz", false, NULL, 'l'},
- {"utc", false, NULL, 'u'},
- { .name = NULL }
+ {.name = "datestart", .has_arg = true, .val = 'D'},
+ {.name = "datestop", .has_arg = true, .val = 'E'},
+ {.name = "timestart", .has_arg = true, .val = 'X'},
+ {.name = "timestop", .has_arg = true, .val = 'Y'},
+ {.name = "weekdays", .has_arg = true, .val = 'w'},
+ {.name = "monthdays", .has_arg = true, .val = 'm'},
+ {.name = "localtz", .has_arg = false, .val = 'l'},
+ {.name = "utc", .has_arg = false, .val = 'u'},
+ XT_GETOPT_TABLEEND,
};
static void time_help(void)