make ten_ms local to run (#101)

ten_ms needed to be a global but after the following commit
3724d3fc17 this no longer holds true.
it can simply be local to run, as it's not used anywhere else.
This commit is contained in:
N-R-K 2021-09-29 09:51:13 +06:00 committed by GitHub
parent 80c5a1cd9f
commit 0c66c0e25f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
main.c
View File

@ -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;