1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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>
This commit is contained in:
Andreas Schneider 2018-12-13 11:23:00 +01:00 committed by Andreas Schneider
parent 007898bf8d
commit cbf8917b40

View File

@ -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
};