diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-19 11:07:29 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-19 16:56:47 -0700 |
commit | bc75934a8912b237a7f4658d7cf28ddd9a766d41 (patch) | |
tree | 3c3c5323a9dac769767bc3125f8a3813165c8000 | |
parent | 2cddd8041cf5b6369d2216d0ffbdfa2821869215 (diff) |
Mark global variables as static
Clears -Wmissing-variable-declarations warnings from clang
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | lndir.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -65,12 +65,12 @@ in this Software without prior written authorization from The Open Group. #include <stdarg.h> -int silent = 0; /* -silent */ -int ignore_links = 0; /* -ignorelinks */ -int with_revinfo = 0; /* -withrevinfo */ +static int silent = 0; /* -silent */ +static int ignore_links = 0; /* -ignorelinks */ +static int with_revinfo = 0; /* -withrevinfo */ -char *rcurdir; -char *curdir; +static char *rcurdir; +static char *curdir; static void _X_ATTRIBUTE_PRINTF(2,3) _X_NORETURN quit (int code, const char * fmt, ...) |