summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/names.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-07-15 09:27:35 +0000
committernicm <nicm@openbsd.org>2016-07-15 09:27:35 +0000
commit6ae61da3b5cd2001512109c8a89799f1e139545e (patch)
tree3b681072a27b9789786851d1fa4a4b175bee35ca /usr.bin/tmux/names.c
parentSwitch m88k to pass &_DYNAMIC to _dl_boot_bind() (diff)
downloadwireguard-openbsd-6ae61da3b5cd2001512109c8a89799f1e139545e.tar.xz
wireguard-openbsd-6ae61da3b5cd2001512109c8a89799f1e139545e.zip
Wrap some long lines and apply some static.
Diffstat (limited to 'usr.bin/tmux/names.c')
-rw-r--r--usr.bin/tmux/names.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/tmux/names.c b/usr.bin/tmux/names.c
index 59a55097877..f9d6e88ab42 100644
--- a/usr.bin/tmux/names.c
+++ b/usr.bin/tmux/names.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: names.c,v 1.34 2016/01/19 15:59:12 nicm Exp $ */
+/* $OpenBSD: names.c,v 1.35 2016/07/15 09:27:35 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -73,12 +73,15 @@ check_window_name(struct window *w)
if (!event_initialized(&w->name_event))
evtimer_set(&w->name_event, name_time_callback, w);
if (!evtimer_pending(&w->name_event, NULL)) {
- log_debug("@%u name timer queued (%d left)", w->id, left);
+ log_debug("@%u name timer queued (%d left)", w->id,
+ left);
timerclear(&next);
next.tv_usec = left;
event_add(&w->name_event, &next);
- } else
- log_debug("@%u name timer already queued (%d left)", w->id, left);
+ } else {
+ log_debug("@%u name timer already queued (%d left)",
+ w->id, left);
+ }
return;
}
memcpy(&w->name_time, &tv, sizeof w->name_time);