diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-07 19:49:19 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-07 19:49:19 +0000 |
commit | 923ccfa2e8dfddc1611213bc027fd2968a84c04b (patch) | |
tree | a50aa399eceff37bcf97d902076c1e888d357fd4 /server.c | |
parent | 474fdebb7abf08aecbcf00a92b7d53cd9528649c (diff) | |
download | rtmux-923ccfa2e8dfddc1611213bc027fd2968a84c04b.tar.gz rtmux-923ccfa2e8dfddc1611213bc027fd2968a84c04b.tar.bz2 rtmux-923ccfa2e8dfddc1611213bc027fd2968a84c04b.zip |
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 'server.c')
-rw-r--r-- | server.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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(); |