Krolyxon
Commit 0c66c0e

Branches

Refs →

nsxiv0c66c0e

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.
Author
N-R-K
Date
2021-09-29 09:51 +0600
Committer
GitHub · 2021-09-29 06:51 +0300
Parent
80c5a1c
Commit
0c66c0e25f8d3aa90a1d4e7bfaed734e30a29e4c

+1 −2

1 file changed

  1. M main.c +1 −2
M main.c View
@@ -682,13 +682,12 @@ void on_buttonpress(XButtonEvent *bev)
682682 prefix = 0;
683683 }
684684
685−const struct timespec ten_ms = {0, 10000000};
686−
687685 void run(void)
688686 {
689687 int xfd;
690688 fd_set fds;
691689 struct timeval timeout;
690+ const struct timespec ten_ms = {0, 10000000};
692691 bool discard, init_thumb, load_thumb, to_set;
693692 XEvent ev, nextev;
694693