summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-10-31 12:39:18 +0000
committerJim Meyering <jim@meyering.net>1995-10-31 12:39:18 +0000
commitaa6cde5ca1b33823fb226c3823b1b99f5061081b (patch)
tree2ff83e6692a780a80959ffc6d50eb25e0042f0f5 /src
parent05a5e426098b939e6159b2193c789a37bc9757a2 (diff)
downloadcoreutils-aa6cde5ca1b33823fb226c3823b1b99f5061081b.tar.xz
Add `const' attribute to some parameters.
Diffstat (limited to 'src')
-rw-r--r--src/split.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/split.c b/src/split.c
index e96d5adf6..a3732d3f8 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)
{