summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-10-24 21:28:37 +0000
committerJim Meyering <jim@meyering.net>1999-10-24 21:28:37 +0000
commit9ddb95e93c7e3583540a1232df7c7b940e417ead (patch)
tree3cb1ae005bf9d0f63696a0ace72a5f9da3bfd8be /src
parente3bd3c1c395f9534364fdae4087339dd584480b3 (diff)
downloadcoreutils-9ddb95e93c7e3583540a1232df7c7b940e417ead.tar.xz
(do_copy): Constify `dest', and cast-away the new
const in assignment to new_dest.
Diffstat (limited to 'src')
-rw-r--r--src/cp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cp.c b/src/cp.c
index fca51bad8..183755d68 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -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);