summaryrefslogtreecommitdiffstats
path: root/bin/rm
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-10-31 08:59:17 +0000
committered <ed@FreeBSD.org>2011-10-31 08:59:17 +0000
commitf58d00c87a547a1f65cf7b990fda6f4e36feb314 (patch)
treeb068d06018284af5aa8b3feab9edb06109d847bc /bin/rm
parent6458f63cb36a7883be28c39ca995cf3e03bfce69 (diff)
downloadFreeBSD-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/rm')
-rw-r--r--bin/rm/rm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c
index af362a9..3c2ba61 100644
--- a/bin/rm/rm.c
+++ b/bin/rm/rm.c
@@ -57,10 +57,10 @@ __FBSDID("$FreeBSD$");
#include <sysexits.h>
#include <unistd.h>
-int dflag, eval, fflag, iflag, Pflag, vflag, Wflag, stdin_ok;
-int rflag, Iflag;
-uid_t uid;
-volatile sig_atomic_t info;
+static int dflag, eval, fflag, iflag, Pflag, vflag, Wflag, stdin_ok;
+static int rflag, Iflag;
+static uid_t uid;
+static volatile sig_atomic_t info;
int check(char *, char *, struct stat *);
int check2(char **);
OpenPOWER on IntegriCloud