summaryrefslogtreecommitdiff
path: root/lib/texpect/texpect.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/texpect/texpect.c')
-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
};