diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-04-29 01:23:20 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-04-29 01:23:20 -0700 |
commit | 671557e028b71581fc0cfbe92ee8cb90345dfb24 (patch) | |
tree | a93722547a56cd2ed057d08f456fdd109ed8df69 /pw.c | |
parent | f118762f9771ac64e1b8e0987be1eeddb663298a (diff) | |
download | pw-671557e028b71581fc0cfbe92ee8cb90345dfb24.tar.gz pw-671557e028b71581fc0cfbe92ee8cb90345dfb24.tar.bz2 pw-671557e028b71581fc0cfbe92ee8cb90345dfb24.zip |
Global vars static.
Diffstat (limited to 'pw.c')
-rw-r--r-- | pw.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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, ...) { |