summaryrefslogtreecommitdiff
path: root/src/du.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/du.c
parentcdb20814d2dbd70ac952285ebe01372f513849fd (diff)
downloadcoreutils-144b82c6c22abaa2a3247dc33b286662a7aa90d9.tar.xz
Give most file-scope variables the static attribute.
Diffstat (limited to 'src/du.c')
-rw-r--r--src/du.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/du.c b/src/du.c
index 726b5d30e..10864bf01 100644
--- a/src/du.c
+++ b/src/du.c
@@ -107,25 +107,25 @@ void str_trunc ();
char *program_name;
/* If nonzero, display only a total for each argument. */
-int opt_summarize_only = 0;
+static int opt_summarize_only = 0;
/* If nonzero, display counts for all files, not just directories. */
-int opt_all = 0;
+static int opt_all = 0;
/* If nonzero, count each hard link of files with multiple links. */
-int opt_count_all = 0;
+static int opt_count_all = 0;
/* If nonzero, do not cross file-system boundaries. */
-int opt_one_file_system = 0;
+static int opt_one_file_system = 0;
/* If nonzero, print a grand total at the end. */
-int opt_combined_arguments = 0;
+static int opt_combined_arguments = 0;
/* If nonzero, do not add sizes of subdirectories. */
-int opt_separate_dirs = 0;
+static int opt_separate_dirs = 0;
/* If nonzero, dereference symlinks that are command line arguments. */
-int opt_dereference_arguments = 0;
+static int opt_dereference_arguments = 0;
enum output_size
{
@@ -135,26 +135,26 @@ enum output_size
};
/* The units to count in. */
-enum output_size output_size;
+static enum output_size output_size;
/* Accumulated path for file or directory being processed. */
-string path;
+static string path;
/* Pointer to hash structure, used by the hash routines. */
-struct htab *htab;
+static struct htab *htab;
/* Globally used stat buffer. */
-struct stat stat_buf;
+static struct stat stat_buf;
/* A pointer to either lstat or stat, depending on whether
dereferencing of all symbolic links is to be done. */
-int (*xstat) ();
+static int (*xstat) ();
/* The exit status to use if we don't get any fatal errors. */
-int exit_status;
+static int exit_status;
-struct option long_options[] =
+static struct option long_options[] =
{
{"all", 0, &opt_all, 1},
{"bytes", 0, NULL, 'b'},