diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-09-20 22:11:27 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-09-20 22:11:27 +0000 |
commit | 3266fb5441e99c809ee56806a0eb8d113a4d099f (patch) | |
tree | f52c08a3d9aed0b3861348f4a20f8ddf21e4e99d /status.c | |
parent | ab967724365e8210ad51bbaa8b2c2d28f548e188 (diff) | |
download | rtmux-3266fb5441e99c809ee56806a0eb8d113a4d099f.tar.gz rtmux-3266fb5441e99c809ee56806a0eb8d113a4d099f.tar.bz2 rtmux-3266fb5441e99c809ee56806a0eb8d113a4d099f.zip |
Sync OpenBSD patchset 332:
Regularise some fatal messages.
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: status.c,v 1.118 2009-09-11 14:13:52 tcunha Exp $ */ +/* $Id: status.c,v 1.119 2009-09-20 22:11:27 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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); |