From: Jim Meyering Date: Tue, 31 Oct 1995 12:39:18 +0000 (+0000) Subject: Add `const' attribute to some parameters. X-Git-Tag: FILEUTILS-3_12f~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa6cde5ca1b33823fb226c3823b1b99f5061081b;p=platform%2Fupstream%2Fcoreutils.git Add `const' attribute to some parameters. --- diff --git a/src/split.c b/src/split.c index e96d5ad..a3732d3 100644 --- a/src/split.c +++ b/src/split.c @@ -73,7 +73,7 @@ static struct option const longopts[] = }; static void -usage (int status, char *reason) +usage (int status, const char *reason) { if (reason != NULL) fprintf (stderr, "%s: %s\n", program_name, reason); @@ -107,7 +107,7 @@ SIZE may have a multiplier suffix: b for 512, k for 1K, m for 1 Meg.\n\ /* Return nonzero if the string STR is composed entirely of decimal digits. */ static int -isdigits (char *str) +isdigits (const char *str) { do { @@ -125,7 +125,7 @@ isdigits (char *str) Return 0 if STR is valid, -1 if not. */ static int -convint (char *str, int *val) +convint (const char *str, int *val) { int multiplier = 1; int arglen = strlen (str); @@ -201,7 +201,7 @@ next_file_name (void) Otherwise add to the same output file already in use. */ static void -cwrite (int new_file_flag, char *bp, int bytes) +cwrite (int new_file_flag, const char *bp, int bytes) { if (new_file_flag) {