nsxiv79556e9
declare internal variables as static
+4 −4
1 file changed
- M main.c +4 −4
| @@ -66,7 +66,7 @@ int markcnt; | |||
| 66 | 66 | int markidx; | |
| 67 | 67 | ||
| 68 | 68 | int prefix; | |
| 69 | − | bool extprefix; | |
| 69 | + | static bool extprefix; | |
| 70 | 70 | ||
| 71 | 71 | static bool resized = false; | |
| 72 | 72 | ||
| @@ -75,19 +75,19 @@ typedef struct { | |||
| 75 | 75 | char *cmd; | |
| 76 | 76 | } extcmd_t; | |
| 77 | 77 | ||
| 78 | − | struct { | |
| 78 | + | static struct { | |
| 79 | 79 | extcmd_t f; | |
| 80 | 80 | int fd; | |
| 81 | 81 | unsigned int i, lastsep; | |
| 82 | 82 | pid_t pid; | |
| 83 | 83 | } info; | |
| 84 | 84 | ||
| 85 | − | struct { | |
| 85 | + | static struct { | |
| 86 | 86 | extcmd_t f; | |
| 87 | 87 | bool warned; | |
| 88 | 88 | } keyhandler; | |
| 89 | 89 | ||
| 90 | − | timeout_t timeouts[] = { | |
| 90 | + | static timeout_t timeouts[] = { | |
| 91 | 91 | { { 0, 0 }, false, redraw }, | |
| 92 | 92 | { { 0, 0 }, false, reset_cursor }, | |
| 93 | 93 | { { 0, 0 }, false, animate }, | |