summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-04-29 11:32:35 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-04-29 16:04:28 +0000
commitd24c9d5fa4bae5882844c6f0d5ab86bca74a4092 (patch)
tree43a9fbbb4f09c37749e509386d7e81d4cc8387fb /source3/utils
parent633698c971598090b6883d39d370ba202514ef32 (diff)
downloadsamba-d24c9d5fa4bae5882844c6f0d5ab86bca74a4092.tar.gz
s3:utils: use struct initializer in async-tracker long_options
s3:utils: use struct initializer in async-tracker long_options The previous initializer list was missing a NULL as last element. Using struct initializers instead for correct initialisation. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/async-tracker.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/source3/utils/async-tracker.c b/source3/utils/async-tracker.c
index 4ccf26f907e..f45c0953238 100644
--- a/source3/utils/async-tracker.c
+++ b/source3/utils/async-tracker.c
@@ -207,8 +207,20 @@ int main(int argc, const char **argv)
poptContext pc;
struct poptOption long_options[] = {
POPT_AUTOHELP
- {"tevent", 't', POPT_ARG_NONE, NULL, 't', "Use tevent loop" },
- {"glib", 'g', POPT_ARG_NONE, NULL, 'g', "Use glib loop" },
+ {
+ .longName = "tevent",
+ .shortName = 't',
+ .argInfo = POPT_ARG_NONE,
+ .val = 'v',
+ .descrip = "Use tevent loop",
+ },
+ {
+ .longName = "glib",
+ .shortName = 'g',
+ .argInfo = POPT_ARG_NONE,
+ .val = 'g',
+ .descrip = "Use glib loop",
+ },
POPT_COMMON_SAMBA
POPT_TABLEEND
};