diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-07-07 19:49:20 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-07-07 19:49:20 +0000 |
commit | 636728068cd05bf10a07b9d593f55990c458a6e9 (patch) | |
tree | 3a57ec7124dd030e1a314d58abd6b85685d3285f /usr.bin/tmux/server.c | |
parent | 540531a12acafaaf1a8bb16ed85a6f3487f89908 (diff) |
Rename the global options variables to be shorter and to make session options
clear. No functional change, getting this out of the way to make later options
changes easier.
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r-- | usr.bin/tmux/server.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c index a1f908b7ac1..8112a9443d0 100644 --- a/usr.bin/tmux/server.c +++ b/usr.bin/tmux/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.5 2009/06/26 22:12:19 nicm Exp $ */ +/* $OpenBSD: server.c,v 1.6 2009/07/07 19:49:19 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -373,8 +373,8 @@ server_main(int srv_fd) unlink(socket_path); xfree(socket_path); - options_free(&global_options); - options_free(&global_window_options); + options_free(&global_s_options); + options_free(&global_w_options); if (server_password != NULL) xfree(server_password); @@ -573,10 +573,8 @@ server_redraw_locked(struct client *c) yy = c->tty.sy - 1; if (xx == 0 || yy == 0) return; - colour = options_get_number( - &global_window_options, "clock-mode-colour"); - style = options_get_number( - &global_window_options, "clock-mode-style"); + colour = options_get_number(&global_w_options, "clock-mode-colour"); + style = options_get_number(&global_w_options, "clock-mode-style"); screen_init(&screen, xx, yy, 0); @@ -1062,7 +1060,7 @@ server_second_timers(void) time_t t; t = time(NULL); - xtimeout = options_get_number(&global_options, "lock-after-time"); + xtimeout = options_get_number(&global_s_options, "lock-after-time"); if (xtimeout > 0 && t > server_activity + xtimeout) server_lock(); |