diff options
author | Jim Meyering <jim@meyering.net> | 2003-05-13 14:45:00 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-05-13 14:45:00 +0000 |
commit | 3b7798ab529d493e1da708828ad977e2319cd427 (patch) | |
tree | 9b3a6342ad345bde64900623291286e801ee22ce /src | |
parent | 6fc02451230cc5e13032ee7eeac7d972576ecd9b (diff) | |
download | coreutils-3b7798ab529d493e1da708828ad977e2319cd427.tar.xz |
(struct F_triple) [name]: Remove const attribute.
(triple_free): Don't apply cast to argument of free.
(seen_file): Add cast here instead.
Diffstat (limited to 'src')
-rw-r--r-- | src/copy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/copy.c b/src/copy.c index 7b65f7ca2..a2774f5ad 100644 --- a/src/copy.c +++ b/src/copy.c @@ -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; |