diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-05-07 04:01:25 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-05-08 15:12:59 +0200 |
commit | 104fb318d22231c9edf9d61ef84cc84386e52d6b (patch) | |
tree | 56ca0fc3bc0fae1ef621d2a47ec62258763c61fb /include | |
parent | 373e8513c4b9b0491e46ae89397ead03d093ee76 (diff) |
extensions: remove bogus use of XT_GETOPT_TABLEEND
Commit v1.4.8-36-g32b8e61 added this end marker in a little too many
places: at non-getopt places. Fix that.
Also change the definition of XT_GETOPT_TABLEEND to reference a struct
getopt member by name so that this cannot happen again.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/xtables.h.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/xtables.h.in b/include/xtables.h.in index 0cd9f9f8..da8d84c9 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -346,7 +346,7 @@ struct xtables_globals void (*exit_err)(enum xtables_exittype status, const char *msg, ...) __attribute__((noreturn, format(printf,2,3))); }; -#define XT_GETOPT_TABLEEND {NULL} +#define XT_GETOPT_TABLEEND {.name = NULL, .has_arg = false} #ifdef __cplusplus extern "C" { |