From ef772bf97f7ec577754cbb5b278504d83cf41a43 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Sun, 11 Apr 2021 18:23:21 +0100 Subject: 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' --- src/split.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/split.c') 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) { -- cgit v1.2.3