summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-08-21 08:45:00 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-08-21 08:45:00 +0000
commit74ec25b81c3a3e829dff01a606be13a1a2e1daf0 (patch)
treebe89a0f28fdf1ed787bf888bba4fa31246479473 /usr.bin/tmux/cmd.c
parent8f793168bad3b38ed711f06a7e5d23b1743e97b0 (diff)
Wrap command argument definitions in their own struct.
Diffstat (limited to 'usr.bin/tmux/cmd.c')
-rw-r--r--usr.bin/tmux/cmd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd.c b/usr.bin/tmux/cmd.c
index 343375c5f48..c255c162386 100644
--- a/usr.bin/tmux/cmd.c
+++ b/usr.bin/tmux/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.166 2021/08/20 19:50:17 nicm Exp $ */
+/* $OpenBSD: cmd.c,v 1.167 2021/08/21 08:44:59 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -518,8 +518,7 @@ cmd_parse(int argc, char **argv, const char *file, u_int line, char **cause)
return (NULL);
cmd_log_argv(argc, argv, "%s: %s", __func__, entry->name);
- args = args_parse(entry->args.template, argc, argv, entry->args.lower,
- entry->args.upper);
+ args = args_parse(&entry->args, argc, argv);
if (args == NULL)
goto usage;