aboutsummaryrefslogtreecommitdiff
path: root/cmd-source-file.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2016-10-16 22:01:14 +0100
committerThomas Adam <thomas@xteddy.org>2016-10-16 22:01:14 +0100
commit1a6e696b08113ca17ee8e881844167cf94276846 (patch)
tree60ecdd8c9e51bff46624e48d9373686b858d2fb1 /cmd-source-file.c
parentd401340c516131ae8e07bfb978b670347486d077 (diff)
parentd15d54c2c8e6b95695169442eb2a27d814efc078 (diff)
downloadrtmux-1a6e696b08113ca17ee8e881844167cf94276846.tar.gz
rtmux-1a6e696b08113ca17ee8e881844167cf94276846.tar.bz2
rtmux-1a6e696b08113ca17ee8e881844167cf94276846.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-source-file.c')
-rw-r--r--cmd-source-file.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/cmd-source-file.c b/cmd-source-file.c
index 6f9c4451..d2178692 100644
--- a/cmd-source-file.c
+++ b/cmd-source-file.c
@@ -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);
}