summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-01-13 11:56:43 +0000
committernicm <nicm@openbsd.org>2017-01-13 11:56:43 +0000
commit24a64db755276cf562b6dfb9e5a5816a72817b23 (patch)
treedde1b78d0c628abbbee07b75c80b956a3cccde8a /usr.bin/tmux/server-client.c
parentAdd -E to detach-client to exec a command to replace the client instead (diff)
downloadwireguard-openbsd-24a64db755276cf562b6dfb9e5a5816a72817b23.tar.xz
wireguard-openbsd-24a64db755276cf562b6dfb9e5a5816a72817b23.zip
Make options_get_string return const string.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 51a89a1b9b8..a035a1f6beb 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.207 2017/01/13 10:12:12 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.208 2017/01/13 11:56:43 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -296,12 +296,13 @@ server_client_detach(struct client *c, enum msgtype msgtype)
proc_send_s(c->peer, msgtype, s->name);
}
-/* Execute command to replace a client, */
+/* Execute command to replace a client. */
void
server_client_exec(struct client *c, const char *cmd)
{
struct session *s = c->session;
- char *msg, *shell;
+ char *msg;
+ const char *shell;
size_t cmdsize, shellsize;
if (*cmd == '\0')