aboutsummaryrefslogtreecommitdiff
path: root/bin/cat/cat.c
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2011-10-31 08:59:17 +0000
committerEd Schouten <ed@FreeBSD.org>2011-10-31 08:59:17 +0000
commitf9d4afb439cc2c97183694169663cf6ae10c628e (patch)
treeb068d06018284af5aa8b3feab9edb06109d847bc /bin/cat/cat.c
parentd883a297a18d964d7a89ba42ce548ddf255ab0c8 (diff)
downloadsrc-f9d4afb439cc2c97183694169663cf6ae10c628e.tar.gz
src-f9d4afb439cc2c97183694169663cf6ae10c628e.zip
Put some static keywords in the source code.
For these simple utilities, it doesn't harm to make all global variables static. In fact, this allows the compiler to perform better forms of optimisation and analysis.
Notes
Notes: svn path=/head/; revision=226961
Diffstat (limited to 'bin/cat/cat.c')
-rw-r--r--bin/cat/cat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/cat/cat.c b/bin/cat/cat.c
index d338742229f0..437c01379faf 100644
--- a/bin/cat/cat.c
+++ b/bin/cat/cat.c
@@ -64,9 +64,9 @@ __FBSDID("$FreeBSD$");
#include <unistd.h>
#include <stddef.h>
-int bflag, eflag, nflag, sflag, tflag, vflag;
-int rval;
-const char *filename;
+static int bflag, eflag, nflag, sflag, tflag, vflag;
+static int rval;
+static const char *filename;
static void usage(void);
static void scanfiles(char *argv[], int cooked);