diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-07-23 21:16:14 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-07-23 21:25:43 +0200 |
commit | 32b8e61e4e5bd405d9ad07bf9468498dfbb19f9e (patch) | |
tree | 5a9fab83069d6dd29263906b88f58f58aec7d4e0 /extensions/libxt_cluster.c | |
parent | 854fe779211ffa051009b68b3f07673938b714c5 (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/libxt_cluster.c')
-rw-r--r-- | extensions/libxt_cluster.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/extensions/libxt_cluster.c b/extensions/libxt_cluster.c index ea5d9fb4..15910455 100644 --- a/extensions/libxt_cluster.c +++ b/extensions/libxt_cluster.c @@ -5,6 +5,7 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ +#include <stdbool.h> #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -38,11 +39,11 @@ enum { }; static const struct option cluster_opts[] = { - { "cluster-total-nodes", 1, NULL, CLUSTER_OPT_TOTAL_NODES }, - { "cluster-local-node", 1, NULL, CLUSTER_OPT_LOCAL_NODE }, - { "cluster-local-nodemask", 1, NULL, CLUSTER_OPT_NODE_MASK }, - { "cluster-hash-seed", 1, NULL, CLUSTER_OPT_HASH_SEED }, - { .name = NULL } + {.name = "cluster-total-nodes", .has_arg = true, .val = CLUSTER_OPT_TOTAL_NODES}, + {.name = "cluster-local-node", .has_arg = true, .val = CLUSTER_OPT_LOCAL_NODE}, + {.name = "cluster-local-nodemask", .has_arg = true, .val = CLUSTER_OPT_NODE_MASK}, + {.name = "cluster-hash-seed", .has_arg = true, .val = CLUSTER_OPT_HASH_SEED}, + XT_GETOPT_TABLEEND, }; static int |