Krolyxon
Commit 79556e9

Branches

Refs →

nsxiv79556e9

declare internal variables as static

Author
NRK
Date
2022-02-03 15:44 +0600
Committer
N-R-K · 2022-02-17 06:16 +0000
Parent
48343e9
Commit
79556e9b02c399eff9a684463847f1c63d3322a1

+4 −4

1 file changed

  1. M main.c +4 −4
M main.c View
@@ -66,7 +66,7 @@ int markcnt;
6666 int markidx;
6767
6868 int prefix;
69−bool extprefix;
69+static bool extprefix;
7070
7171 static bool resized = false;
7272
@@ -75,19 +75,19 @@ typedef struct {
7575 char *cmd;
7676 } extcmd_t;
7777
78−struct {
78+static struct {
7979 extcmd_t f;
8080 int fd;
8181 unsigned int i, lastsep;
8282 pid_t pid;
8383 } info;
8484
85−struct {
85+static struct {
8686 extcmd_t f;
8787 bool warned;
8888 } keyhandler;
8989
90−timeout_t timeouts[] = {
90+static timeout_t timeouts[] = {
9191 { { 0, 0 }, false, redraw },
9292 { { 0, 0 }, false, reset_cursor },
9393 { { 0, 0 }, false, animate },