Skip to content

Commit

Permalink
Add missing time.h to tty.c (from Ismail Donmez), also remove some stray
Browse files Browse the repository at this point in the history
spaces.
  • Loading branch information
nicm committed May 14, 2024
1 parent 5b5004e commit a18d114
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 3 additions & 2 deletions tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <time.h>
#include <unistd.h>

#include "tmux.h"
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a18d114

Please sign in to comment.