summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_CLUSTERIP.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-07-23 21:16:14 +0200
committerJan Engelhardt <jengelh@medozas.de>2010-07-23 21:25:43 +0200
commit32b8e61e4e5bd405d9ad07bf9468498dfbb19f9e (patch)
tree5a9fab83069d6dd29263906b88f58f58aec7d4e0 /extensions/libipt_CLUSTERIP.c
parent854fe779211ffa051009b68b3f07673938b714c5 (diff)
all: consistent syntax use in struct option
Try to inhibit copypasting old stuff. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libipt_CLUSTERIP.c')
-rw-r--r--extensions/libipt_CLUSTERIP.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/extensions/libipt_CLUSTERIP.c b/extensions/libipt_CLUSTERIP.c
index 279aacff..492eefc3 100644
--- a/extensions/libipt_CLUSTERIP.c
+++ b/extensions/libipt_CLUSTERIP.c
@@ -3,6 +3,7 @@
*
* Development of this code was funded by SuSE AG, http://www.suse.com/
*/
+#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -41,13 +42,13 @@ static void CLUSTERIP_help(void)
#define PARAM_HASHINIT 0x0020
static const struct option CLUSTERIP_opts[] = {
- { "new", 0, NULL, '1' },
- { "hashmode", 1, NULL, '2' },
- { "clustermac", 1, NULL, '3' },
- { "total-nodes", 1, NULL, '4' },
- { "local-node", 1, NULL, '5' },
- { "hash-init", 1, NULL, '6' },
- { .name = NULL }
+ {.name = "new", .has_arg = false, .val = '1'},
+ {.name = "hashmode", .has_arg = true, .val = '2'},
+ {.name = "clustermac", .has_arg = true, .val = '3'},
+ {.name = "total-nodes", .has_arg = true, .val = '4'},
+ {.name = "local-node", .has_arg = true, .val = '5'},
+ {.name = "hash-init", .has_arg = true, .val = '6'},
+ XT_GETOPT_TABLEEND,
};
static void