summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-rename-session.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-10-16 22:06:40 +0000
committernicm <nicm@openbsd.org>2016-10-16 22:06:40 +0000
commit2ae124fe486d7811b42e2daedf9d60322f1794d3 (patch)
tree3ba6edb7f45cafe7d15054b1d759a9425c8b0468 /usr.bin/tmux/cmd-rename-session.c
parentUse closefrom(4) in privsep parent and avoid some global file (diff)
downloadwireguard-openbsd-2ae124fe486d7811b42e2daedf9d60322f1794d3.tar.xz
wireguard-openbsd-2ae124fe486d7811b42e2daedf9d60322f1794d3.zip
Use the notify name string instead of going via an enum and change
existing hooks to use notifys instead.
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 e1de056bd40..89f213f5757 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.23 2016/10/16 19:04:05 nicm Exp $ */
+/* $OpenBSD: cmd-rename-session.c,v 1.24 2016/10/16 22:06:40 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -65,7 +65,7 @@ cmd_rename_session_exec(struct cmd *self, struct cmdq_item *item)
RB_INSERT(sessions, &sessions, s);
server_status_session(s);
- notify_session_renamed(s);
+ notify_session("session-renamed", s);
return (CMD_RETURN_NORMAL);
}