]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(struct Src_to_dest) [name]: Remove const attribute.
authorJim Meyering <jim@meyering.net>
Tue, 13 May 2003 14:40:50 +0000 (14:40 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 13 May 2003 14:40:50 +0000 (14:40 +0000)
(src_to_dest_free): Don't apply cast to argument of free.

src/cp-hash.c

index 5328d77125a9ad7ac24a39a55be4faebed5d8827..6200f5e9b2118af7f3616aa7b81169f4725a4761 100644 (file)
@@ -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);
 }