From aa2b5bbb21051c8b542196de9b83425e8666f6d5 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. --- usr.bin/tmux/server.c | 4 ++-- usr.bin/tmux/tty.c | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c index 494a6231ed7..c5cfce6e0f4 100644 --- a/usr.bin/tmux/server.c +++ b/usr.bin/tmux/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.205 2023/09/15 15:49:05 nicm Exp $ */ +/* $OpenBSD: server.c,v 1.206 2024/05/14 10:11:09 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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/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 @@ -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; -- 2.20.1