aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2021-09-29 09:51:13 +0600
committerGitHub <noreply@github.com>2021-09-29 06:51:13 +0300
commit0c66c0e25f8d3aa90a1d4e7bfaed734e30a29e4c (patch)
treea56aac4e3be889fc6bcb007454299428cbc94e10
parent80c5a1cd9faaa49f8970b832500d063829456ab1 (diff)
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.
-rw-r--r--main.c3
1 files changed, 1 insertions, 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;