aboutsummaryrefslogtreecommitdiffstats
path: root/src/split.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2021-04-11 18:23:21 +0100
committerPádraig Brady <P@draigBrady.com>2021-04-11 18:33:45 +0100
commitef772bf97f7ec577754cbb5b278504d83cf41a43 (patch)
treeb6553bdc35b4d08368d427dbb3bb790acf43129c /src/split.c
parentls: cache name width determination (diff)
downloadcoreutils-ef772bf97f7ec577754cbb5b278504d83cf41a43.tar.gz
coreutils-ef772bf97f7ec577754cbb5b278504d83cf41a43.zip
maint: use "char const *" rather than "const char *"
* cfg.mk (sc_prohibit-const-char): Add a new syntax-check to enforce this style. * *.[ch]: sed -i 's/const char \*/char const */g'
Diffstat (limited to 'src/split.c')
-rw-r--r--src/split.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/split.c b/src/split.c
index 59c234c12..f653e1b85 100644
--- a/src/split.c
+++ b/src/split.c
@@ -84,7 +84,7 @@ static size_t suffix_length;
static char const *suffix_alphabet = "abcdefghijklmnopqrstuvwxyz";
/* Numerical suffix start value. */
-static const char *numeric_suffix_start;
+static char const *numeric_suffix_start;
/* Additional suffix to append to output file names. */
static char const *additional_suffix;
@@ -454,7 +454,7 @@ new_name:
/* Create or truncate a file. */
static int
-create (const char *name)
+create (char const *name)
{
if (!filter_command)
{
@@ -594,7 +594,7 @@ closeout (FILE *fp, int fd, pid_t pid, char const *name)
Return true if successful. */
static bool
-cwrite (bool new_file_flag, const char *bp, size_t bytes)
+cwrite (bool new_file_flag, char const *bp, size_t bytes)
{
if (new_file_flag)
{