From 671557e028b71581fc0cfbe92ee8cb90345dfb24 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 29 Apr 2022 01:23:20 -0700 Subject: Global vars static. --- pw.c | 20 ++++++++++---------- 1 file 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, ...) { -- cgit v1.2.3