diff options
author | Jim Meyering <jim@meyering.net> | 1992-11-09 17:39:24 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1992-11-09 17:39:24 +0000 |
commit | 17387a999c446fab250321a02cbcb7774ec6c032 (patch) | |
tree | dc1908dd9bcc3fdd6d4f1dadfae178b12afe08f0 /src/ln.c | |
parent | 925487607cfed5d4e68ffa375bc17941934dba07 (diff) | |
download | coreutils-17387a999c446fab250321a02cbcb7774ec6c032.tar.xz |
Declared lots of external functions and variables static.
Made several statically-initialized arrays `const.'
Diffstat (limited to 'src/ln.c')
-rw-r--r-- | src/ln.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -34,11 +34,12 @@ int symlink (); char *basename (); enum backup_type get_version (); -int do_link (); int isdir (); int yesno (); void error (); -void usage (); + +static void usage (); +static int do_link (); /* A pointer to the function used to make links. This will point to either `link' or `symlink'. */ @@ -62,7 +63,7 @@ static int hard_dir_link; /* The name by which the program was run, for error messages. */ char *program_name; -static struct option long_options[] = +static struct option const long_options[] = { {"backup", 0, NULL, 'b'}, {"directory", 0, &hard_dir_link, 1}, @@ -173,7 +174,7 @@ main (argc, argv) If DEST is a directory, put the link to SOURCE in that directory. Return 1 if there is an error, otherwise 0. */ -int +static int do_link (source, dest) char *source; char *dest; @@ -277,7 +278,7 @@ do_link (source, dest) return 1; } -void +static void usage () { fprintf (stderr, "\ |