From: Jim Meyering Date: Tue, 13 May 2003 14:45:00 +0000 (+0000) Subject: (struct F_triple) [name]: Remove const attribute. X-Git-Tag: v5.0.1~500 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b7798ab529d493e1da708828ad977e2319cd427;p=thirdparty%2Fcoreutils.git (struct F_triple) [name]: Remove const attribute. (triple_free): Don't apply cast to argument of free. (seen_file): Add cast here instead. --- diff --git a/src/copy.c b/src/copy.c index 7b65f7ca20..a2774f5ad1 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;