From: Jim Meyering Date: Sun, 24 Oct 1999 21:28:37 +0000 (+0000) Subject: (do_copy): Constify `dest', and cast-away the new X-Git-Tag: FILEUTILS-4_0j-trial~147 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ddb95e93c7e3583540a1232df7c7b940e417ead;p=thirdparty%2Fcoreutils.git (do_copy): Constify `dest', and cast-away the new const in assignment to new_dest. --- diff --git a/src/cp.c b/src/cp.c index fca51bad81..183755d685 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);