summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-01-08 17:14:28 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-01-28 10:29:15 +0100
commit4c3ada25154000370b6221524d2430ec570f20a1 (patch)
treefe567fd50e3f02dfee2c7bdb03bd5a3f3fcfa690 /source3/param
parentf699cec7d56ae0f8350b28ae08083dbb1270abbc (diff)
downloadsamba-4c3ada25154000370b6221524d2430ec570f20a1.tar.gz
s3:param: Use C99 initializer for poptOption in test_lp_load
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/test_lp_load.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/param/test_lp_load.c b/source3/param/test_lp_load.c
index fb3b95dd762..2a50723b643 100644
--- a/source3/param/test_lp_load.c
+++ b/source3/param/test_lp_load.c
@@ -30,8 +30,14 @@ int main(int argc, const char **argv)
struct poptOption long_options[] = {
POPT_AUTOHELP
- {"count", 'c', POPT_ARG_STRING, &count_str, 1,
- "Load config <count> number of times"},
+ {
+ .longName = "count",
+ .shortName = 'c',
+ .argInfo = POPT_ARG_STRING,
+ .arg = &count_str,
+ .val = 1,
+ .descrip = "Load config <count> number of times"
+ },
POPT_COMMON_DEBUGLEVEL
POPT_TABLEEND
};