summaryrefslogtreecommitdiff
path: root/src/ln.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/ln.c
parentcdb20814d2dbd70ac952285ebe01372f513849fd (diff)
downloadcoreutils-144b82c6c22abaa2a3247dc33b286662a7aa90d9.tar.xz
Give most file-scope variables the static attribute.
Diffstat (limited to 'src/ln.c')
-rw-r--r--src/ln.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ln.c b/src/ln.c
index 781a55d8b..d80d0cede 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -42,27 +42,27 @@ void usage ();
/* A pointer to the function used to make links. This will point to either
`link' or `symlink'. */
-int (*linkfunc) ();
+static int (*linkfunc) ();
/* If nonzero, make symbolic links; otherwise, make hard links. */
-int symbolic_link;
+static int symbolic_link;
/* If nonzero, ask the user before removing existing files. */
-int interactive;
+static int interactive;
/* If nonzero, remove existing files unconditionally. */
-int remove_existing_files;
+static int remove_existing_files;
/* If nonzero, list each file as it is moved. */
-int verbose;
+static int verbose;
/* If nonzero, allow the superuser to make hard links to directories. */
-int hard_dir_link;
+static int hard_dir_link;
/* The name by which the program was run, for error messages. */
char *program_name;
-struct option long_options[] =
+static struct option long_options[] =
{
{"backup", 0, NULL, 'b'},
{"directory", 0, &hard_dir_link, 1},