diff options
author | Jim Meyering <jim@meyering.net> | 2005-11-17 20:17:47 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-11-17 20:17:47 +0000 |
commit | ca7cafb0937516b06c3544567b2795c22f600951 (patch) | |
tree | 9d0c44b3de6b939970f2d4a3bf02a48790b6a79a | |
parent | 8ee6b053089de7f8ab81073e51004f6bec9e6a0f (diff) | |
download | coreutils-ca7cafb0937516b06c3544567b2795c22f600951.tar.xz |
(AD_mark_helper): Make a `char *' parameter `const'.
(AD_mark_current_as_unremovable): Likewise, but for a local.
(rm_1): Likewise.
-rw-r--r-- | src/remove.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/remove.c b/src/remove.c index 52ef3b625..91d75d93f 100644 --- a/src/remove.c +++ b/src/remove.c @@ -428,7 +428,7 @@ AD_pop_and_chdir (Dirstack_state *ds, char **prev_dir, /* Initialize *HT if it is NULL. Insert FILENAME into HT. */ static void -AD_mark_helper (Hash_table **ht, char *filename) +AD_mark_helper (Hash_table **ht, char const *filename) { if (*ht == NULL) { @@ -456,7 +456,7 @@ static void AD_mark_current_as_unremovable (Dirstack_state *ds) { struct AD_ent *top = AD_stack_top (ds); - char *curr = top_dir (ds); + char const *curr = top_dir (ds); assert (1 < AD_stack_height (ds)); @@ -1195,7 +1195,7 @@ static enum RM_status rm_1 (Dirstack_state *ds, char const *filename, struct rm_options const *x, struct cwd_state **cwd_state) { - char *base = base_name (filename); + char const *base = base_name (filename); enum RM_status status; if (DOT_OR_DOTDOT (base)) |