summaryrefslogtreecommitdiffstats
path: root/cmd-show-options.c
diff options
context:
space:
mode:
authornicm <nicm>2017-01-16 14:49:14 +0000
committernicm <nicm>2017-01-16 14:49:14 +0000
commit68db9584777fd40f6100e7944992a021f6e40c71 (patch)
tree33c49d924f6846a337348bc5067c8f9d845a018e /cmd-show-options.c
parent52847a951802fda7a3ce36cdac77c34914b0ccca (diff)
getopt() has a struct option so just return to using options_entry.
Diffstat (limited to 'cmd-show-options.c')
-rw-r--r--cmd-show-options.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/cmd-show-options.c b/cmd-show-options.c
index 67a70330..b9bfe5ee 100644
--- a/cmd-show-options.c
+++ b/cmd-show-options.c
@@ -87,7 +87,7 @@ cmd_show_options_exec(struct cmd *self, struct cmdq_item *item)
static void
cmd_show_options_print(struct cmd *self, struct cmdq_item *item,
- struct option *o, int idx)
+ struct options_entry *o, int idx)
{
const char *name;
const char *value;
@@ -118,10 +118,10 @@ static enum cmd_retval
cmd_show_options_one(struct cmd *self, struct cmdq_item *item,
struct options *oo)
{
- struct args *args = self->args;
- struct option *o;
- int idx, ambiguous;
- const char *name = args->argv[0];
+ struct args *args = self->args;
+ struct options_entry *o;
+ int idx, ambiguous;
+ const char *name = args->argv[0];
o = options_match_get(oo, name, &idx, 1, &ambiguous);
if (o == NULL) {
@@ -144,9 +144,9 @@ static enum cmd_retval
cmd_show_options_all(struct cmd *self, struct cmdq_item *item,
struct options *oo)
{
- struct option *o;
- const struct options_table_entry *oe;
- u_int size, idx;
+ struct options_entry *o;
+ const struct options_table_entry *oe;
+ u_int size, idx;
o = options_first(oo);
while (o != NULL) {