]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(struct F_triple) [name]: Remove const attribute.
authorJim Meyering <jim@meyering.net>
Tue, 13 May 2003 14:45:00 +0000 (14:45 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 13 May 2003 14:45:00 +0000 (14:45 +0000)
(triple_free): Don't apply cast to argument of free.
(seen_file): Add cast here instead.

src/copy.c

index 7b65f7ca200e83d37cf82a2e1df543ae20a6b72e..a2774f5ad142258f4aa39a46d3165fcfc5004328 100644 (file)
@@ -72,7 +72,7 @@ struct dir_list
 /* Describe a just-created or just-renamed destination file.  */
 struct F_triple
 {
-  char const* name;
+  char *name;
   ino_t st_ino;
   dev_t st_dev;
 };
@@ -684,7 +684,7 @@ static void
 triple_free (void *x)
 {
   struct F_triple *a = x;
-  free ((char *) (a->name));
+  free (a->name);
   free (a);
 }
 
@@ -735,7 +735,7 @@ seen_file (Hash_table const *ht, char const *filename,
   if (ht == NULL)
     return 0;
 
-  new_ent.name = filename;
+  new_ent.name = (char *) filename;
   new_ent.st_ino = stats->st_ino;
   new_ent.st_dev = stats->st_dev;