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/rmdir.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/rmdir.c')
-rw-r--r-- | src/rmdir.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/rmdir.c b/src/rmdir.c index 92ed8b1e9..137efb69c 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -27,10 +27,11 @@ #include <sys/types.h> #include "system.h" -void remove_parents (); void error (); void strip_trailing_slashes (); -void usage (); + +static void remove_parents (); +static void usage (); /* If nonzero, remove empty parent directories. */ static int empty_paths; @@ -38,7 +39,7 @@ static int empty_paths; /* The name this program was run with. */ char *program_name; -static struct option longopts[] = +static struct option const longopts[] = { {"path", 0, &empty_paths, 1}, {NULL, 0, NULL, 0} @@ -92,7 +93,7 @@ main (argc, argv) /* Remove any empty parent directories of `path'. Replaces '/' characters in `path' with NULs. */ -void +static void remove_parents (path) char *path; { @@ -112,7 +113,7 @@ remove_parents (path) while (rmdir (path) == 0); } -void +static void usage () { fprintf (stderr, "Usage: %s [-p] [--path] dir...\n", |