diff options
author | Jim Meyering <jim@meyering.net> | 1999-10-24 21:28:37 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-10-24 21:28:37 +0000 |
commit | 9ddb95e93c7e3583540a1232df7c7b940e417ead (patch) | |
tree | 3cb1ae005bf9d0f63696a0ace72a5f9da3bfd8be /src | |
parent | e3bd3c1c395f9534364fdae4087339dd584480b3 (diff) | |
download | coreutils-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |