summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/names.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-10-27 15:58:42 +0000
committernicm <nicm@openbsd.org>2015-10-27 15:58:42 +0000
commitd89252e541ebb5e90a6b7e1089b8f396e19ca235 (patch)
tree6fd0ce863c715f2818c48c94c4f8de9afdb057e9 /usr.bin/tmux/names.c
parentUse AF_UNIX instead of AF_LOCAL. (diff)
downloadwireguard-openbsd-d89252e541ebb5e90a6b7e1089b8f396e19ca235.tar.xz
wireguard-openbsd-d89252e541ebb5e90a6b7e1089b8f396e19ca235.zip
Move struct options into options.c.
Diffstat (limited to 'usr.bin/tmux/names.c')
-rw-r--r--usr.bin/tmux/names.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/names.c b/usr.bin/tmux/names.c
index 398e6911ca1..a4ccb19c511 100644
--- a/usr.bin/tmux/names.c
+++ b/usr.bin/tmux/names.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: names.c,v 1.29 2015/08/29 00:29:15 nicm Exp $ */
+/* $OpenBSD: names.c,v 1.30 2015/10/27 15:58:42 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -58,7 +58,7 @@ check_window_name(struct window *w)
if (w->active == NULL)
return;
- if (!options_get_number(&w->options, "automatic-rename"))
+ if (!options_get_number(w->options, "automatic-rename"))
return;
if (~w->active->flags & PANE_CHANGED) {
@@ -122,7 +122,7 @@ format_window_name(struct window *w)
format_defaults_window(ft, w);
format_defaults_pane(ft, w->active);
- fmt = options_get_string(&w->options, "automatic-rename-format");
+ fmt = options_get_string(w->options, "automatic-rename-format");
name = format_expand(ft, fmt);
format_free(ft);