summaryrefslogtreecommitdiffstats
path: root/tty-keys.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 /tty-keys.c
parent63d499f480e264f8251552fb6d16965a1065e0e6 (diff)
Regularise some fatal messages.
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty-keys.c b/tty-keys.c
index f25dc169..11a3187f 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -287,7 +287,7 @@ tty_keys_next(struct tty *tty, int *key, u_char *mouse)
tv.tv_sec = 0;
tv.tv_usec = ESCAPE_PERIOD * 1000L;
if (gettimeofday(&tty->key_timer, NULL) != 0)
- fatal("gettimeofday");
+ fatal("gettimeofday failed");
timeradd(&tty->key_timer, &tv, &tty->key_timer);
tty->flags |= TTY_ESCAPE;
@@ -317,7 +317,7 @@ tty_keys_next(struct tty *tty, int *key, u_char *mouse)
/* If the timer hasn't expired, keep waiting. */
if (gettimeofday(&tv, NULL) != 0)
- fatal("gettimeofday");
+ fatal("gettimeofday failed");
if (timercmp(&tty->key_timer, &tv, >))
return (1);