]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(struct pathstack): Move dcl to precede prototypes.
authorJim Meyering <jim@meyering.net>
Thu, 9 Nov 1995 23:00:32 +0000 (23:00 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 9 Nov 1995 23:00:32 +0000 (23:00 +0000)
src/rm.c

index 32dc4500a9b1a0a455a9a618a9a998da33bba15f..e8f99cc83ed535220013a200375af7d9a42699cb 100644 (file)
--- a/src/rm.c
+++ b/src/rm.c
 # define D_INO(dp) 1
 #endif
 
+/* An element in a stack of pointers into `pathname'.
+   `pathp' points to where in `pathname' the terminating '\0' goes
+   for this level's directory name.  */
+struct pathstack
+{
+  struct pathstack *next;
+  char *pathp;
+  ino_t inum;
+};
+
 char *basename (char *);
 char *stpcpy ();
 char *xmalloc ();
@@ -51,6 +61,11 @@ static void usage (int status);
 /* Name this program was run with.  */
 char *program_name;
 
+/* Linked list of pathnames of directories in progress in recursive rm.
+   The entries actually contain pointers into `pathname'.
+   `pathstack' is the current deepest level.  */
+static struct pathstack *pathstack = NULL;
+
 /* Path of file now being processed; extended as necessary.  */
 static char *pathname;
 
@@ -311,21 +326,6 @@ remove_dir (struct stat *statp)
   return 0;
 }
 
-/* An element in a stack of pointers into `pathname'.
-   `pathp' points to where in `pathname' the terminating '\0' goes
-   for this level's directory name.  */
-struct pathstack
-{
-  struct pathstack *next;
-  char *pathp;
-  ino_t inum;
-};
-
-/* Linked list of pathnames of directories in progress in recursive rm.
-   The entries actually contain pointers into `pathname'.
-   `pathstack' is the current deepest level.  */
-static struct pathstack *pathstack = NULL;
-
 /* Read directory `pathname' and remove all of its entries,
    avoiding use of chdir.
    On entry, STATP points to the results of stat on `pathname'.