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