From 0bf332a016325b90b43907a7dceaf1d95740ae92 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 9 Nov 1995 23:00:32 +0000 Subject: (struct pathstack): Move dcl to precede prototypes. --- src/rm.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/rm.c') diff --git a/src/rm.c b/src/rm.c index 32dc4500a..e8f99cc83 100644 --- a/src/rm.c +++ b/src/rm.c @@ -33,6 +33,16 @@ # 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'. -- cgit v1.2.3-70-g09d2