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.
+1 −2
1 file changed
- M main.c +1 −2
| @@ -682,13 +682,12 @@ void on_buttonpress(XButtonEvent *bev) | |||
| 682 | 682 | prefix = 0; | |
| 683 | 683 | } | |
| 684 | 684 | ||
| 685 | − | const struct timespec ten_ms = {0, 10000000}; | |
| 686 | − | ||
| 687 | 685 | void run(void) | |
| 688 | 686 | { | |
| 689 | 687 | int xfd; | |
| 690 | 688 | fd_set fds; | |
| 691 | 689 | struct timeval timeout; | |
| 690 | + | const struct timespec ten_ms = {0, 10000000}; | |
| 692 | 691 | bool discard, init_thumb, load_thumb, to_set; | |
| 693 | 692 | XEvent ev, nextev; | |
| 694 | 693 | ||