aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2021-09-29 05:51:13 +0200
committerGitHub <noreply@github.com>2021-09-29 05:51:13 +0200
commit0c66c0e25f8d3aa90a1d4e7bfaed734e30a29e4c (patch)
treea56aac4e3be889fc6bcb007454299428cbc94e10 /main.c
parent80c5a1cd9faaa49f8970b832500d063829456ab1 (diff)
downloadnsxiv-0c66c0e25f8d3aa90a1d4e7bfaed734e30a29e4c.tar.zst
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.
Diffstat (limited to 'main.c')
-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;