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/chmod.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/chmod.c')
-rw-r--r-- | src/chmod.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/chmod.c b/src/chmod.c index efdc08cd1..4e04dfc64 100644 --- a/src/chmod.c +++ b/src/chmod.c @@ -34,12 +34,13 @@ int lstat (); char *savedir (); char *xmalloc (); char *xrealloc (); -int change_file_mode (); -int change_dir_mode (); -void describe_change (); void error (); void mode_string (); -void usage (); + +static int change_file_mode (); +static int change_dir_mode (); +static void describe_change (); +static void usage (); /* The name the program was run with. */ char *program_name; @@ -140,7 +141,7 @@ main (argc, argv) /* Change the mode of FILE according to the list of operations CHANGES. Return 0 if successful, 1 if errors occurred. */ -int +static int change_file_mode (file, changes) char *file; struct mode_change *changes; @@ -186,7 +187,7 @@ change_file_mode (file, changes) STATP points to the results of lstat on DIR. Return 0 if successful, 1 if errors occurred. */ -int +static int change_dir_mode (dir, changes, statp) char *dir; struct mode_change *changes; @@ -239,7 +240,7 @@ change_dir_mode (dir, changes, statp) /* Tell the user the mode MODE that file FILE has been set to; if CHANGED is zero, FILE had that mode already. */ -void +static void describe_change (file, mode, changed) char *file; unsigned short mode; @@ -257,7 +258,7 @@ describe_change (file, mode, changed) file, mode & 07777, &perms[1]); } -void +static void usage () { fprintf (stderr, "\ |