declare internal variables as static

This commit is contained in:
NRK 2022-02-03 15:44:10 +06:00 committed by N-R-K
parent 48343e99b8
commit 79556e9b02

8
main.c
View File

@ -66,7 +66,7 @@ int markcnt;
int markidx; int markidx;
int prefix; int prefix;
bool extprefix; static bool extprefix;
static bool resized = false; static bool resized = false;
@ -75,19 +75,19 @@ typedef struct {
char *cmd; char *cmd;
} extcmd_t; } extcmd_t;
struct { static struct {
extcmd_t f; extcmd_t f;
int fd; int fd;
unsigned int i, lastsep; unsigned int i, lastsep;
pid_t pid; pid_t pid;
} info; } info;
struct { static struct {
extcmd_t f; extcmd_t f;
bool warned; bool warned;
} keyhandler; } keyhandler;
timeout_t timeouts[] = { static timeout_t timeouts[] = {
{ { 0, 0 }, false, redraw }, { { 0, 0 }, false, redraw },
{ { 0, 0 }, false, reset_cursor }, { { 0, 0 }, false, reset_cursor },
{ { 0, 0 }, false, animate }, { { 0, 0 }, false, animate },