aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-07 19:49:19 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-07 19:49:19 +0000
commit923ccfa2e8dfddc1611213bc027fd2968a84c04b (patch)
treea50aa399eceff37bcf97d902076c1e888d357fd4 /server.c
parent474fdebb7abf08aecbcf00a92b7d53cd9528649c (diff)
downloadrtmux-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.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/server.c b/server.c
index ec88394c..6ba83d87 100644
--- a/server.c
+++ b/server.c
@@ -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();