diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-01-16 14:49:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-01-16 14:49:15 +0000 |
commit | 4a76a0d5435a7cf94e84198e2515773143e4f85c (patch) | |
tree | 501189cd68a4f35fa94e0f700665b1a68dca9b79 /usr.bin/tmux/cmd-show-options.c | |
parent | 7353230a73bc2fbc4d31c4c34bbdbd010944dc6f (diff) |
getopt() has a struct option so just return to using options_entry.
Diffstat (limited to 'usr.bin/tmux/cmd-show-options.c')
-rw-r--r-- | usr.bin/tmux/cmd-show-options.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/tmux/cmd-show-options.c b/usr.bin/tmux/cmd-show-options.c index 513cb361797..0fb4fc1dc49 100644 --- a/usr.bin/tmux/cmd-show-options.c +++ b/usr.bin/tmux/cmd-show-options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-show-options.c,v 1.35 2017/01/15 20:48:41 nicm Exp $ */ +/* $OpenBSD: cmd-show-options.c,v 1.36 2017/01/16 14:49:14 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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) { |