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

const in assignment to new_dest.
This commit is contained in:
Jim Meyering committed 1999-10-24 21:28:37 +00:00
1 parent e3bd3c1c39
commit 9ddb95e93c
1 file changed
+2 -2
+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);