aboutsummaryrefslogtreecommitdiffstats
path: root/pw.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-04-29 01:23:20 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-04-29 01:23:20 -0700
commit671557e028b71581fc0cfbe92ee8cb90345dfb24 (patch)
treea93722547a56cd2ed057d08f456fdd109ed8df69 /pw.c
parentf118762f9771ac64e1b8e0987be1eeddb663298a (diff)
downloadpw-671557e028b71581fc0cfbe92ee8cb90345dfb24.tar.gz
pw-671557e028b71581fc0cfbe92ee8cb90345dfb24.tar.bz2
pw-671557e028b71581fc0cfbe92ee8cb90345dfb24.zip
Global vars static.
Diffstat (limited to 'pw.c')
-rw-r--r--pw.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/pw.c b/pw.c
index d695ad9..a8350b3 100644
--- a/pw.c
+++ b/pw.c
@@ -49,19 +49,19 @@ typedef struct dstr {
#define dstr_of(str) ((dstr *) ((str) - sizeof (dstr)))
-char **snapshot;
-int snaplines;
-char *trigpat;
-regex_t trigex;
+static char **snapshot;
+static int snaplines;
+static char *trigpat;
+static regex_t trigex;
-grep grepstack[maxgrep];
-int ngrep;
+static grep grepstack[maxgrep];
+static int ngrep;
-char **cmdhist;
-unsigned ncmdhist;
+static char **cmdhist;
+static unsigned ncmdhist;
-char **pathist;
-unsigned npathist;
+static char **pathist;
+static unsigned npathist;
static void panic(const char *fmt, ...)
{