diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-16 19:04:06 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-16 19:04:06 +0000 |
commit | 3f0dad54b9b7fbe7e951cb592fa147fbdc7bdde6 (patch) | |
tree | a685fa2872c014d3bc9be168c7338d3974fcab39 /usr.bin/tmux/cmd-list-sessions.c | |
parent | f71299d662dee69becff6a71ecf049a77fbacd95 (diff) |
Mass rename struct cmd_q to struct cmdq_item and related.
Diffstat (limited to 'usr.bin/tmux/cmd-list-sessions.c')
-rw-r--r-- | usr.bin/tmux/cmd-list-sessions.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/tmux/cmd-list-sessions.c b/usr.bin/tmux/cmd-list-sessions.c index d87df0ed5ed..8ea5559cf3e 100644 --- a/usr.bin/tmux/cmd-list-sessions.c +++ b/usr.bin/tmux/cmd-list-sessions.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-list-sessions.c,v 1.26 2016/10/14 22:14:22 nicm Exp $ */ +/* $OpenBSD: cmd-list-sessions.c,v 1.27 2016/10/16 19:04:05 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -36,7 +36,8 @@ "#{session_group}#{?session_grouped,),}" \ "#{?session_attached, (attached),}" -static enum cmd_retval cmd_list_sessions_exec(struct cmd *, struct cmd_q *); +static enum cmd_retval cmd_list_sessions_exec(struct cmd *, + struct cmdq_item *); const struct cmd_entry cmd_list_sessions_entry = { .name = "list-sessions", @@ -50,7 +51,7 @@ const struct cmd_entry cmd_list_sessions_entry = { }; static enum cmd_retval -cmd_list_sessions_exec(struct cmd *self, struct cmd_q *cmdq) +cmd_list_sessions_exec(struct cmd *self, struct cmdq_item *item) { struct args *args = self->args; struct session *s; @@ -64,12 +65,12 @@ cmd_list_sessions_exec(struct cmd *self, struct cmd_q *cmdq) n = 0; RB_FOREACH(s, sessions, &sessions) { - ft = format_create(cmdq, 0); + ft = format_create(item, 0); format_add(ft, "line", "%u", n); format_defaults(ft, NULL, s, NULL, NULL); line = format_expand(ft, template); - cmdq_print(cmdq, "%s", line); + cmdq_print(item, "%s", line); free(line); format_free(ft); |