diff options
author | 2016-10-16 19:04:05 +0000 | |
---|---|---|
committer | 2016-10-16 19:04:05 +0000 | |
commit | 68e0a7f271bc1c08e58a23a65844d346c6665089 (patch) | |
tree | 315962d2740c0dca5e710bb5c9db0ac9878f55ba /usr.bin/tmux/cmd-source-file.c | |
parent | Replace fs/msdosfs/{msdosfs_conv.c,direntry.h} with stripped-down (diff) | |
download | wireguard-openbsd-68e0a7f271bc1c08e58a23a65844d346c6665089.tar.xz wireguard-openbsd-68e0a7f271bc1c08e58a23a65844d346c6665089.zip |
Mass rename struct cmd_q to struct cmdq_item and related.
Diffstat (limited to 'usr.bin/tmux/cmd-source-file.c')
-rw-r--r-- | usr.bin/tmux/cmd-source-file.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/usr.bin/tmux/cmd-source-file.c b/usr.bin/tmux/cmd-source-file.c index e48befd4028..33213880275 100644 --- a/usr.bin/tmux/cmd-source-file.c +++ b/usr.bin/tmux/cmd-source-file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-source-file.c,v 1.29 2016/10/16 17:55:14 nicm Exp $ */ +/* $OpenBSD: cmd-source-file.c,v 1.30 2016/10/16 19:04:05 nicm Exp $ */ /* * Copyright (c) 2008 Tiago Cunha <me@tiagocunha.org> @@ -26,9 +26,9 @@ * Sources a configuration file. */ -static enum cmd_retval cmd_source_file_exec(struct cmd *, struct cmd_q *); +static enum cmd_retval cmd_source_file_exec(struct cmd *, struct cmdq_item *); -static enum cmd_retval cmd_source_file_done(struct cmd_q *, void *); +static enum cmd_retval cmd_source_file_done(struct cmdq_item *, void *); const struct cmd_entry cmd_source_file_entry = { .name = "source-file", @@ -42,34 +42,34 @@ const struct cmd_entry cmd_source_file_entry = { }; static enum cmd_retval -cmd_source_file_exec(struct cmd *self, struct cmd_q *cmdq) +cmd_source_file_exec(struct cmd *self, struct cmdq_item *item) { - struct args *args = self->args; - struct client *c = cmdq->client; - int quiet; - struct cmd_q *new_cmdq; + struct args *args = self->args; + struct client *c = item->client; + int quiet; + struct cmdq_item *new_item; quiet = args_has(args, 'q'); - switch (load_cfg(args->argv[0], c, cmdq, quiet)) { + switch (load_cfg(args->argv[0], c, item, quiet)) { case -1: if (cfg_finished) - cfg_print_causes(cmdq); + cfg_print_causes(item); return (CMD_RETURN_ERROR); case 0: if (cfg_finished) - cfg_print_causes(cmdq); + cfg_print_causes(item); return (CMD_RETURN_NORMAL); } if (cfg_finished) { - new_cmdq = cmdq_get_callback(cmd_source_file_done, NULL); - cmdq_insert_after(cmdq, new_cmdq); + new_item = cmdq_get_callback(cmd_source_file_done, NULL); + cmdq_insert_after(item, new_item); } return (CMD_RETURN_NORMAL); } static enum cmd_retval -cmd_source_file_done(struct cmd_q *cmdq, __unused void *data) +cmd_source_file_done(struct cmdq_item *item, __unused void *data) { - cfg_print_causes(cmdq); + cfg_print_causes(item); return (CMD_RETURN_NORMAL); } |