summaryrefslogtreecommitdiff
path: root/src/rm.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1992-11-01 03:30:09 +0000
committerJim Meyering <jim@meyering.net>1992-11-01 03:30:09 +0000
commit144b82c6c22abaa2a3247dc33b286662a7aa90d9 (patch)
treebbd19ca5dd38607ced11823281da205091b645d4 /src/rm.c
parentcdb20814d2dbd70ac952285ebe01372f513849fd (diff)
downloadcoreutils-144b82c6c22abaa2a3247dc33b286662a7aa90d9.tar.xz
Give most file-scope variables the static attribute.
Diffstat (limited to 'src/rm.c')
-rw-r--r--src/rm.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/rm.c b/src/rm.c
index b62fbbf07..7b98acdef 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -46,36 +46,36 @@ void strip_trailing_slashes ();
void usage ();
/* Path of file now being processed; extended as necessary. */
-char *pathname;
+static char *pathname;
/* Number of bytes currently allocated for `pathname';
made larger when necessary, but never smaller. */
-int pnsize;
+static int pnsize;
/* Name this program was run with. */
char *program_name;
/* If nonzero, display the name of each file removed. */
-int verbose;
+static int verbose;
/* If nonzero, ignore nonexistant files. */
-int ignore_missing_files;
+static int ignore_missing_files;
/* If nonzero, recursively remove directories. */
-int recursive;
+static int recursive;
/* If nonzero, query the user about whether to remove each file. */
-int interactive;
+static int interactive;
/* If nonzero, remove directories with unlink instead of rmdir, and don't
require a directory to be empty before trying to unlink it.
Only works for the super-user. */
-int unlink_dirs;
+static int unlink_dirs;
/* If nonzero, stdin is a tty. */
-int stdin_tty;
+static int stdin_tty;
-struct option long_opts[] =
+static struct option long_opts[] =
{
{"directory", 0, &unlink_dirs, 1},
{"force", 0, NULL, 'f'},