From: Jim Meyering Date: Thu, 1 Apr 1999 05:15:37 +0000 (+0000) Subject: (main): Qualify a char* with the `const' keyword. X-Git-Tag: FILEUTILS-4_0e~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a7b641acd55e50038dc5c94a5c3305d2f539fff7;p=thirdparty%2Fcoreutils.git (main): Qualify a char* with the `const' keyword. --- diff --git a/src/ln.c b/src/ln.c index e23cd26ada..1cdc72f2f8 100644 --- a/src/ln.c +++ b/src/ln.c @@ -48,7 +48,7 @@ int symlink (); #define PATH_BASENAME_CONCAT(new_dest, dest, source) \ do \ { \ - char *source_base; \ + const char *source_base; \ char *tmp_source; \ \ tmp_source = (char *) alloca (strlen ((source)) + 1); \ @@ -377,7 +377,7 @@ main (int argc, char **argv) int c; int errors; int make_backups = 0; - char *version; + const char *version; program_name = argv[0]; setlocale (LC_ALL, ""); @@ -474,7 +474,7 @@ main (int argc, char **argv) else if (optind == argc - 2) { struct stat source_stats; - char *source; + const char *source; char *dest; char *new_dest;