aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-02-03 15:44:10 +0600
committerN-R-K <79544946+N-R-K@users.noreply.github.com>2022-02-17 06:16:19 +0000
commit79556e9b02c399eff9a684463847f1c63d3322a1 (patch)
tree2f8bf17ceb6aadcb641015a6a62f827e98598af6
parent48343e99b8bb27fdc7763e521ea7e651ecc7a7ba (diff)
declare internal variables as static
-rw-r--r--main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index 58538f0..ebbbc3a 100644
--- a/main.c
+++ b/main.c
@@ -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 },