From 0c66c0e25f8d3aa90a1d4e7bfaed734e30a29e4c Mon Sep 17 00:00:00 2001 From: N-R-K <79544946+N-R-K@users.noreply.github.com> Date: Wed, 29 Sep 2021 09:51:13 +0600 Subject: make ten_ms local to run (#101) ten_ms needed to be a global but after the following commit 3724d3fc17dc6135a05608cab5bdf00c6978282d this no longer holds true. it can simply be local to run, as it's not used anywhere else. --- main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.c b/main.c index 59f1f21..220743b 100644 --- a/main.c +++ b/main.c @@ -682,13 +682,12 @@ void on_buttonpress(XButtonEvent *bev) prefix = 0; } -const struct timespec ten_ms = {0, 10000000}; - void run(void) { int xfd; fd_set fds; struct timeval timeout; + const struct timespec ten_ms = {0, 10000000}; bool discard, init_thumb, load_thumb, to_set; XEvent ev, nextev; -- cgit v1.2.3