summaryrefslogtreecommitdiff
path: root/lib/texpect
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-12-13 11:23:00 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-01-28 10:29:12 +0100
commitcbf8917b401d70f93d7dc9761c6ff18d587d9163 (patch)
tree4fdbe46d33dce8cc8cdaf9c7869a2bf8fef98c20 /lib/texpect
parent007898bf8d750fd343746b7de47da3b4583918f3 (diff)
downloadsamba-cbf8917b401d70f93d7dc9761c6ff18d587d9163.tar.gz
lib:texpect: Use C99 initializer for poptOption in texpect
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'lib/texpect')
-rw-r--r--lib/texpect/texpect.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/texpect/texpect.c b/lib/texpect/texpect.c
index dd786705e8e..3f6278bbb10 100644
--- a/lib/texpect/texpect.c
+++ b/lib/texpect/texpect.c
@@ -380,8 +380,20 @@ static int eval_parent(pid_t pid)
*/
struct poptOption long_options[] = {
POPT_AUTOHELP
- {"timeout", 't', POPT_ARG_INT, &opt_timeout, 't'},
- {"verbose", 'v', POPT_ARG_NONE, &opt_verbose, 'v'},
+ {
+ .longName = "timeout",
+ .shortName = 't',
+ .argInfo = POPT_ARG_INT,
+ .arg = &opt_timeout,
+ .val = 't',
+ },
+ {
+ .longName = "verbose",
+ .shortName = 'v',
+ .argInfo = POPT_ARG_NONE,
+ .arg = &opt_verbose,
+ .val = 'v',
+ },
POPT_TABLEEND
};