From 4a94a06aa6f19d572b734d0c1ec3e9b6206512f4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 12 May 2001 09:51:23 +0000 Subject: [PATCH] (strip_trailing_slashes): Remove declaration; now in dirname.h. --- src/chmod.c | 3 +-- src/chown.c | 2 +- src/ln.c | 2 +- src/mkdir.c | 2 -- src/rm.c | 3 +-- src/rmdir.c | 3 +-- 6 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/chmod.c b/src/chmod.c index 7605ca1..842faf2 100644 --- a/src/chmod.c +++ b/src/chmod.c @@ -23,6 +23,7 @@ #include #include "system.h" +#include "dirname.h" #include "error.h" #include "filemode.h" #include "modechange.h" @@ -53,8 +54,6 @@ enum Verbosity V_off }; -void strip_trailing_slashes (); - static int change_dir_mode PARAMS ((const char *dir, const struct mode_change *changes, const struct stat *statp)); diff --git a/src/chown.c b/src/chown.c index ad6e863..58cf261 100644 --- a/src/chown.c +++ b/src/chown.c @@ -34,6 +34,7 @@ #include #include "system.h" +#include "dirname.h" #include "error.h" #include "lchown.h" #include "quote.h" @@ -56,7 +57,6 @@ struct group *getgrgid (); #endif char *parse_user_spec (); -void strip_trailing_slashes (); /* The name the program was run with. */ char *program_name; diff --git a/src/ln.c b/src/ln.c index 21f55dc..c7345a4 100644 --- a/src/ln.c +++ b/src/ln.c @@ -29,6 +29,7 @@ #include "system.h" #include "same.h" #include "backupfile.h" +#include "dirname.h" #include "error.h" #include "quote.h" @@ -86,7 +87,6 @@ int symlink (); int isdir (); int yesno (); -void strip_trailing_slashes (); /* The name by which the program was run, for error messages. */ char *program_name; diff --git a/src/mkdir.c b/src/mkdir.c index 419bda7..48b03ba 100644 --- a/src/mkdir.c +++ b/src/mkdir.c @@ -34,8 +34,6 @@ #define AUTHORS "David MacKenzie" -void strip_trailing_slashes (); - /* The name this program was run with. */ char *program_name; diff --git a/src/rm.c b/src/rm.c index 0000c70..40a273d 100644 --- a/src/rm.c +++ b/src/rm.c @@ -50,6 +50,7 @@ #include #include "system.h" +#include "dirname.h" #include "error.h" #include "remove.h" #include "save-cwd.h" @@ -60,8 +61,6 @@ #define AUTHORS \ "Paul Rubin, David MacKenzie, Richard Stallman, and Jim Meyering" -void strip_trailing_slashes (); - /* Name this program was run with. */ char *program_name; diff --git a/src/rmdir.c b/src/rmdir.c index 260205c..86ec7c1 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -28,6 +28,7 @@ #include #include "system.h" +#include "dirname.h" #include "error.h" #include "quote.h" @@ -44,8 +45,6 @@ # define ENOTEMPTY 0 #endif -void strip_trailing_slashes (); - /* The name this program was run with. */ char *program_name; -- 2.7.4