diff options
author | Jim Meyering <jim@meyering.net> | 2004-06-20 13:44:12 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-06-20 13:44:12 +0000 |
commit | 1c7b9917a205f00956aa2e8557606c04dca91fc0 (patch) | |
tree | 7da01c2969d52d4095e6617a85e7f188f2132c45 /src | |
parent | 1d5cfee4d87a460931849d8889682cf4a82daed6 (diff) | |
download | coreutils-1c7b9917a205f00956aa2e8557606c04dca91fc0.tar.xz |
Include yesno.h.
(top_dir): Remove now-unnecessary cast of obstack_base.
(pop_dir): Likewise.
(full_filename_): Likewise.
Diffstat (limited to 'src')
-rw-r--r-- | src/remove.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/remove.c b/src/remove.c index b1b5c0fa9..0845e51da 100644 --- a/src/remove.c +++ b/src/remove.c @@ -36,6 +36,7 @@ #include "quote.h" #include "remove.h" #include "root-dev-ino.h" +#include "yesno.h" /* Avoid shadowing warnings because these are functions declared in dirname.h as well as locals used below. */ @@ -112,8 +113,6 @@ struct AD_ent } u; }; -int yesno (); - extern char *program_name; struct dirstack_state @@ -211,7 +210,7 @@ static inline char * top_dir (Dirstack_state const *ds) { int n_lengths = obstack_object_size (&ds->len_stack) / sizeof (size_t); - size_t *length = (size_t *) obstack_base (&ds->len_stack); + size_t *length = obstack_base (&ds->len_stack); size_t top_len = length[n_lengths - 1]; char const *p = obstack_next_free (&ds->dir_stack) - top_len; char *q = xmalloc (top_len); @@ -224,7 +223,7 @@ static inline void pop_dir (Dirstack_state *ds) { int n_lengths = obstack_object_size (&ds->len_stack) / sizeof (size_t); - size_t *length = (size_t *) obstack_base (&ds->len_stack); + size_t *length = obstack_base (&ds->len_stack); size_t top_len; assert (n_lengths > 0); @@ -284,7 +283,7 @@ full_filename_ (Dirstack_state const *ds, const char *filename) static size_t n_allocated = 0; int dir_len = obstack_object_size (&ds->dir_stack); - char *dir_name = (char *) obstack_base (&ds->dir_stack); + char *dir_name = obstack_base (&ds->dir_stack); size_t n_bytes_needed; size_t filename_len; |