aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-09-20 14:58:12 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-09-20 14:58:12 +0000
commit273f1b385cdbe472501092edabf78acb2ea70a47 (patch)
tree79da517cecea605be97036d7cb3875404435cd31 /status.c
parent63d499f480e264f8251552fb6d16965a1065e0e6 (diff)
downloadrtmux-273f1b385cdbe472501092edabf78acb2ea70a47.tar.gz
rtmux-273f1b385cdbe472501092edabf78acb2ea70a47.tar.bz2
rtmux-273f1b385cdbe472501092edabf78acb2ea70a47.zip
Regularise some fatal messages.
Diffstat (limited to 'status.c')
-rw-r--r--status.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/status.c b/status.c
index 7e25f235..77062729 100644
--- a/status.c
+++ b/status.c
@@ -64,7 +64,7 @@ status_redraw(struct client *c)
screen_init(&c->status, c->tty.sx, 1, 0);
if (gettimeofday(&c->status_timer, NULL) != 0)
- fatal("gettimeofday");
+ fatal("gettimeofday failed");
memcpy(&stdgc, &grid_default_cell, sizeof gc);
colour_set_fg(&stdgc, options_get_number(&s->options, "status-fg"));
colour_set_bg(&stdgc, options_get_number(&s->options, "status-bg"));
@@ -361,7 +361,7 @@ status_replace(struct session *s, const char *fmt, time_t t)
case 'H':
if (ptr == NULL) {
if (gethostname(tmp, sizeof tmp) != 0)
- fatal("gethostname");
+ fatal("gethostname failed");
ptr = tmp;
}
/* FALLTHROUGH */
@@ -565,7 +565,7 @@ status_message_set(struct client *c, const char *fmt, ...)
tv.tv_usec = (delay % 1000) * 1000L;
if (gettimeofday(&c->message_timer, NULL) != 0)
- fatal("gettimeofday");
+ fatal("gettimeofday failed");
timeradd(&c->message_timer, &tv, &c->message_timer);
c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE);