From 9ddb95e93c7e3583540a1232df7c7b940e417ead Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 24 Oct 1999 21:28:37 +0000 Subject: (do_copy): Constify `dest', and cast-away the new const in assignment to new_dest. --- src/cp.c | 4 ++-- 1 file 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); -- cgit v1.2.3-54-g00ecf