=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/server-fn.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- src/usr.bin/tmux/server-fn.c 2009/11/26 21:37:13 1.30 +++ src/usr.bin/tmux/server-fn.c 2009/12/03 22:50:10 1.31 @@ -1,4 +1,4 @@ -/* $OpenBSD: server-fn.c,v 1.30 2009/11/26 21:37:13 nicm Exp $ */ +/* $OpenBSD: server-fn.c,v 1.31 2009/12/03 22:50:10 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -61,7 +61,7 @@ return; log_debug("writing %d to client %d", type, c->ibuf.fd); imsg_compose(ibuf, type, PROTOCOL_VERSION, -1, -1, (void *) buf, len); - server_update_event(c); + server_update_event(c); } void @@ -208,7 +208,7 @@ if (c == NULL || c->session == NULL || c->session != s) continue; server_lock_client(c); - } + } } void @@ -225,7 +225,7 @@ cmdlen = strlcpy(lockdata.cmd, cmd, sizeof lockdata.cmd); if (cmdlen >= sizeof lockdata.cmd) return; - + tty_stop_tty(&c->tty); tty_raw(&c->tty, tty_term_string(c->tty.term, TTYC_SMCUP)); tty_raw(&c->tty, tty_term_string(c->tty.term, TTYC_CLEAR)); @@ -240,14 +240,14 @@ struct session *s; struct winlink *wl; u_int i; - + for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { s = ARRAY_ITEM(&sessions, i); if (s == NULL || !session_has(s, w)) continue; if ((wl = winlink_find_by_window(&s->windows, w)) == NULL) continue; - + if (session_detach(s, wl)) server_destroy_session_group(s); else { @@ -357,7 +357,7 @@ { struct client *c; u_int i; - + for (i = 0; i < ARRAY_LENGTH(&clients); i++) { c = ARRAY_ITEM(&clients, i); if (c == NULL || c->session != s) @@ -376,7 +376,7 @@ delay = options_get_number(&c->session->options, "display-panes-time"); tv.tv_sec = delay / 1000; tv.tv_usec = (delay % 1000) * 1000L; - + evtimer_del(&c->identify_timer); evtimer_set(&c->identify_timer, server_callback_identify, c); evtimer_add(&c->identify_timer, &tv); @@ -417,5 +417,5 @@ events |= EV_WRITE; event_del(&c->event); event_set(&c->event, c->ibuf.fd, events, server_client_callback, c); - event_add(&c->event, NULL); + event_add(&c->event, NULL); }