summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-rename-session.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-04-13 08:26:28 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-04-13 08:26:28 +0000
commit9947eee19da9830a3c591d7fb4574df8cdd144e6 (patch)
tree1a0de0f756437614d69dd15dc6d5c4da36dec3d6 /usr.bin/tmux/cmd-rename-session.c
parent5230ffc0bf4649be99e262688d7286dffa252d99 (diff)
Make struct cmd local to cmd.c and move it out of tmux.h.
Diffstat (limited to 'usr.bin/tmux/cmd-rename-session.c')
-rw-r--r--usr.bin/tmux/cmd-rename-session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-rename-session.c b/usr.bin/tmux/cmd-rename-session.c
index 4ae4fedaad8..1947720239f 100644
--- a/usr.bin/tmux/cmd-rename-session.c
+++ b/usr.bin/tmux/cmd-rename-session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-rename-session.c,v 1.28 2018/04/11 09:54:45 nicm Exp $ */
+/* $OpenBSD: cmd-rename-session.c,v 1.29 2020/04/13 08:26:27 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -46,7 +46,7 @@ const struct cmd_entry cmd_rename_session_entry = {
static enum cmd_retval
cmd_rename_session_exec(struct cmd *self, struct cmdq_item *item)
{
- struct args *args = self->args;
+ struct args *args = cmd_get_args(self);
struct client *c = cmd_find_client(item, NULL, 1);
struct session *s = item->target.s;
char *newname;