summaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
authornicm <nicm>2015-12-13 21:53:57 +0000
committernicm <nicm>2015-12-13 21:53:57 +0000
commitecfeee2e8255a77f82a07124c93c8dbc7683c421 (patch)
tree9203458cd986398219f89c635b0583c8144b6cda /cmd.c
parent899bee0056b2d90b1c40c800473014b458ebd63d (diff)
Use member names in cmd_entry definitions so I stop getting confused
about the order.
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd.c b/cmd.c
index 9f05a11e..f47991a3 100644
--- a/cmd.c
+++ b/cmd.c
@@ -353,12 +353,12 @@ cmd_parse(int argc, char **argv, const char *file, u_int line, char **cause)
return (NULL);
}
- args = args_parse(entry->args_template, argc, argv);
+ args = args_parse(entry->args.template, argc, argv);
if (args == NULL)
goto usage;
- if (entry->args_lower != -1 && args->argc < entry->args_lower)
+ if (entry->args.lower != -1 && args->argc < entry->args.lower)
goto usage;
- if (entry->args_upper != -1 && args->argc > entry->args_upper)
+ if (entry->args.upper != -1 && args->argc > entry->args.upper)
goto usage;
cmd = xcalloc(1, sizeof *cmd);