1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-05 08:10:15 +02:00

(do_copy): Constify `dest', and cast-away the new

const in assignment to new_dest.
This commit is contained in:
Jim Meyering
1999-10-24 21:28:37 +00:00
parent e3bd3c1c39
commit 9ddb95e93c
+2 -2
View File
@@ -401,7 +401,7 @@ static int
do_copy (int n_files, char **file, const char *target_directory,
const struct cp_options *x)
{
char *dest;
const char *dest;
struct stat sb;
int new_dst = 0;
int ret = 0;
@@ -603,7 +603,7 @@ do_copy (int n_files, char **file, const char *target_directory,
}
else
{
new_dest = dest;
new_dest = (char *) dest;
}
return copy (source, new_dest, new_dst, x, &unused, NULL);