summaryrefslogtreecommitdiff
path: root/src/cp-hash.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-05-13 14:40:50 +0000
committerJim Meyering <jim@meyering.net>2003-05-13 14:40:50 +0000
commit40b700eadb73acf2658b1a01c140474dcefaf9b1 (patch)
tree8cef73858d4e87e4bc6218af39d102bc831734f4 /src/cp-hash.c
parent80d799b8a2d01c0a81c0002b4d0c0a99556b20f8 (diff)
downloadcoreutils-40b700eadb73acf2658b1a01c140474dcefaf9b1.tar.xz
(struct Src_to_dest) [name]: Remove const attribute.
(src_to_dest_free): Don't apply cast to argument of free.
Diffstat (limited to 'src/cp-hash.c')
-rw-r--r--src/cp-hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cp-hash.c b/src/cp-hash.c
index 5328d7712..6200f5e9b 100644
--- a/src/cp-hash.c
+++ b/src/cp-hash.c
@@ -42,7 +42,7 @@ struct Src_to_dest
/* Destination path name (of non-directory or pre-existing directory)
corresponding to the dev/ino of a copied file, or the destination path
name corresponding to a dev/ino pair for a newly-created directory. */
- char const* name;
+ char *name;
};
/* This table maps source dev/ino to destination file name.
@@ -77,7 +77,7 @@ static void
src_to_dest_free (void *x)
{
struct Src_to_dest *a = x;
- free ((char *) (a->name));
+ free (a->name);
free (x);
}