diff options
author | 2017-01-13 11:56:43 +0000 | |
---|---|---|
committer | 2017-01-13 11:56:43 +0000 | |
commit | 24a64db755276cf562b6dfb9e5a5816a72817b23 (patch) | |
tree | dde1b78d0c628abbbee07b75c80b956a3cccde8a /usr.bin/tmux/names.c | |
parent | Add -E to detach-client to exec a command to replace the client instead (diff) | |
download | wireguard-openbsd-24a64db755276cf562b6dfb9e5a5816a72817b23.tar.xz wireguard-openbsd-24a64db755276cf562b6dfb9e5a5816a72817b23.zip |
Make options_get_string return const string.
Diffstat (limited to 'usr.bin/tmux/names.c')
-rw-r--r-- | usr.bin/tmux/names.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/names.c b/usr.bin/tmux/names.c index 8e2a783fefd..24156a8355b 100644 --- a/usr.bin/tmux/names.c +++ b/usr.bin/tmux/names.c @@ -1,4 +1,4 @@ -/* $OpenBSD: names.c,v 1.37 2016/10/11 13:21:59 nicm Exp $ */ +/* $OpenBSD: names.c,v 1.38 2017/01/13 11:56:43 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -121,7 +121,8 @@ static char * format_window_name(struct window *w) { struct format_tree *ft; - char *fmt, *name; + const char *fmt; + char *name; ft = format_create(NULL, 0); format_defaults_window(ft, w); |