From a18d1146aa3b3b935214b8ba40e017ed456903a9 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 14 May 2024 10:11:09 +0000 Subject: [PATCH] Add missing time.h to tty.c (from Ismail Donmez), also remove some stray spaces. --- server.c | 2 +- tty.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server.c b/server.c index f1df1aa4..606345c3 100644 --- a/server.c +++ b/server.c @@ -258,7 +258,7 @@ server_loop(void) struct client *c; u_int items; - current_time = time (NULL); + current_time = time(NULL); do { items = cmdq_next(NULL); diff --git a/tty.c b/tty.c index 8a2dee81..2064f534 100644 --- a/tty.c +++ b/tty.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #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;