diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-05-14 10:11:10 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-05-14 10:11:10 +0000 |
commit | 788a4de5f4a7970a7e44d1b7f04b64a200a3cb86 (patch) | |
tree | 43d05b5edc98d8d192fbc577476e0f54fcf74313 /usr.bin/tmux/tty.c | |
parent | 228b8d536b4448f2c88b90fd3f89844db81ffb89 (diff) |
Add missing time.h to tty.c (from Ismail Donmez), also remove some stray
spaces.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index e6205c8fcdf..3e1120c1f00 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.435 2023/09/15 15:49:05 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.436 2024/05/14 10:11:09 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -28,6 +28,7 @@ #include <stdlib.h> #include <string.h> #include <termios.h> +#include <time.h> #include <unistd.h> #include "tmux.h" @@ -374,13 +375,13 @@ tty_send_requests(struct tty *tty) tty_puts(tty, "\033]11;?\033\\"); } else tty->flags |= TTY_ALL_REQUEST_FLAGS; - tty->last_requests = time (NULL); + tty->last_requests = time(NULL); } void tty_repeat_requests(struct tty *tty) { - time_t t = time (NULL); + time_t t = time(NULL); if (~tty->flags & TTY_STARTED) return; |