summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-11-06 18:49:30 +0000
committered <ed@FreeBSD.org>2011-11-06 18:49:30 +0000
commitb4971e80feba1fb8436b486961807d2a855b2f52 (patch)
tree5a6596683add4d63834ba7897f81c1488b7cbc37
parentb333c8830884a56cbd10db2d70a22d85472f5572 (diff)
downloadFreeBSD-src-b4971e80feba1fb8436b486961807d2a855b2f52.zip
FreeBSD-src-b4971e80feba1fb8436b486961807d2a855b2f52.tar.gz
Mark global functions and/or variables in expand(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
-rw-r--r--usr.bin/expand/expand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/expand/expand.c b/usr.bin/expand/expand.c
index e8d85b4..1d89089 100644
--- a/usr.bin/expand/expand.c
+++ b/usr.bin/expand/expand.c
@@ -53,8 +53,8 @@ __FBSDID("$FreeBSD$");
/*
* expand - expand tabs to equivalent spaces
*/
-int nstops;
-int tabstops[100];
+static int nstops;
+static int tabstops[100];
static void getstops(char *);
static void usage(void);
OpenPOWER on IntegriCloud