diff options
author | ed <ed@FreeBSD.org> | 2011-10-31 08:59:17 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-10-31 08:59:17 +0000 |
commit | f58d00c87a547a1f65cf7b990fda6f4e36feb314 (patch) | |
tree | b068d06018284af5aa8b3feab9edb06109d847bc /bin/cat/cat.c | |
parent | 6458f63cb36a7883be28c39ca995cf3e03bfce69 (diff) | |
download | FreeBSD-src-f58d00c87a547a1f65cf7b990fda6f4e36feb314.zip FreeBSD-src-f58d00c87a547a1f65cf7b990fda6f4e36feb314.tar.gz |
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.
Diffstat (limited to 'bin/cat/cat.c')
-rw-r--r-- | bin/cat/cat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/cat/cat.c b/bin/cat/cat.c index d338742..437c013 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); |