From b342bd0b462f69a9fc9a59d52bcd4bb34b57114f Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 16 Oct 2016 19:04:05 +0000 Subject: Mass rename struct cmd_q to struct cmdq_item and related. --- format.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'format.c') diff --git a/format.c b/format.c index f9128f01..a8c5fa51 100644 --- a/format.c +++ b/format.c @@ -470,7 +470,7 @@ format_cb_pane_tabs(struct format_tree *ft, struct format_entry *fe) /* Create a new tree. */ struct format_tree * -format_create(struct cmd_q *cmdq, int flags) +format_create(struct cmdq_item *item, int flags) { struct format_tree *ft; @@ -489,10 +489,10 @@ format_create(struct cmd_q *cmdq, int flags) format_add(ft, "socket_path", "%s", socket_path); format_add_tv(ft, "start_time", &start_time); - if (cmdq != NULL && cmdq->cmd != NULL) - format_add(ft, "command", "%s", cmdq->cmd->entry->name); - if (cmdq != NULL && cmdq->hook != NULL) - format_add(ft, "hook", "%s", cmdq->hook); + if (item != NULL && item->cmd != NULL) + format_add(ft, "command", "%s", item->cmd->entry->name); + if (item != NULL && item->hook != NULL) + format_add(ft, "hook", "%s", item->hook); return (ft); } -- cgit