summaryrefslogtreecommitdiffstats
path: root/server-client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-12-03 22:50:09 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-12-03 22:50:09 +0000
commit15a64b805e46584d37cc6745383709632e287999 (patch)
tree5a55f5006585c9cdde05163251fd99da243575b5 /server-client.c
parent6c9862662fd2cccdc55be9d447a27b10f33ed8ea (diff)
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying colours...
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/server-client.c b/server-client.c
index e0fcfd04..80b4429c 100644
--- a/server-client.c
+++ b/server-client.c
@@ -36,7 +36,7 @@ void server_client_reset_state(struct client *);
int server_client_msg_dispatch(struct client *);
void server_client_msg_command(struct client *, struct msg_command_data *);
void server_client_msg_identify(
- struct client *, struct msg_identify_data *, int);
+ struct client *, struct msg_identify_data *, int);
void server_client_msg_shell(struct client *);
void printflike2 server_client_msg_error(struct cmd_ctx *, const char *, ...);
@@ -62,7 +62,7 @@ server_client_create(int fd)
c->references = 0;
imsg_init(&c->ibuf, fd);
server_update_event(c);
-
+
if (gettimeofday(&c->creation_time, NULL) != 0)
fatal("gettimeofday failed");
memcpy(&c->activity_time, &c->creation_time, sizeof c->activity_time);
@@ -189,7 +189,7 @@ server_client_callback(int fd, short events, void *data)
goto client_lost;
}
- server_update_event(c);
+ server_update_event(c);
return;
client_lost:
@@ -270,7 +270,7 @@ server_client_handle_key(int key, struct mouse_event *mouse, void *data)
oo = &c->session->options;
/* Special case: number keys jump to pane in identify mode. */
- if (c->flags & CLIENT_IDENTIFY && key >= '0' && key <= '9') {
+ if (c->flags & CLIENT_IDENTIFY && key >= '0' && key <= '9') {
wp = window_pane_at_index(w, key - '0');
if (wp != NULL && window_pane_visible(wp))
window_set_active_pane(w, wp);
@@ -348,7 +348,7 @@ server_client_handle_key(int key, struct mouse_event *mouse, void *data)
xtimeout = options_get_number(&c->session->options, "repeat-time");
if (xtimeout != 0 && bd->can_repeat) {
c->flags |= CLIENT_PREFIX|CLIENT_REPEAT;
-
+
tv.tv_sec = xtimeout / 1000;
tv.tv_usec = (xtimeout % 1000) * 1000L;
evtimer_del(&c->repeat_timer);
@@ -489,7 +489,7 @@ server_client_set_title(struct client *c)
char *title;
template = options_get_string(&s->options, "set-titles-string");
-
+
title = status_replace(c, NULL, template, time(NULL), 1);
if (c->title == NULL || strcmp(title, c->title) != 0) {
if (c->title != NULL)
@@ -743,14 +743,14 @@ server_client_msg_shell(struct client *c)
{
struct msg_shell_data data;
const char *shell;
-
+
shell = options_get_string(&global_s_options, "default-shell");
if (*shell == '\0' || areshell(shell))
shell = _PATH_BSHELL;
if (strlcpy(data.shell, shell, sizeof data.shell) >= sizeof data.shell)
strlcpy(data.shell, _PATH_BSHELL, sizeof data.shell);
-
+
server_write_client(c, MSG_SHELL, &data, sizeof data);
c->flags |= CLIENT_BAD; /* it will die after exec */
}