summaryrefslogtreecommitdiff
path: root/bin/test
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/test
parentd883a297a18d964d7a89ba42ce548ddf255ab0c8 (diff)
downloadsrc-test-f9d4afb439cc2c97183694169663cf6ae10c628e.tar.gz
src-test-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/test')
-rw-r--r--bin/test/test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/test/test.c b/bin/test/test.c
index 62c0309698c56..394988e387abe 100644
--- a/bin/test/test.c
+++ b/bin/test/test.c
@@ -118,7 +118,7 @@ enum token_types {
PAREN
};
-struct t_op {
+static struct t_op {
const char *op_text;
short op_num, op_type;
} const ops [] = {
@@ -165,10 +165,10 @@ struct t_op {
{0, 0, 0}
};
-struct t_op const *t_wp_op;
-int nargc;
-char **t_wp;
-int parenlevel;
+static struct t_op const *t_wp_op;
+static int nargc;
+static char **t_wp;
+static int parenlevel;
static int aexpr(enum token);
static int binop(void);