mirror of
https://github.com/tmux/tmux.git
synced 2025-11-05 18:36:10 +00:00
Regularise some fatal messages.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user