diff options
| author | Pádraig Brady <P@draigBrady.com> | 2021-04-11 18:23:21 +0100 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2021-04-11 18:33:45 +0100 |
| commit | ef772bf97f7ec577754cbb5b278504d83cf41a43 (patch) | |
| tree | b6553bdc35b4d08368d427dbb3bb790acf43129c /src/cksum.c | |
| parent | ls: cache name width determination (diff) | |
| download | coreutils-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/cksum.c')
| -rw-r--r-- | src/cksum.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cksum.c b/src/cksum.c index f463cd6bb..c3416f866 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -172,10 +172,10 @@ static struct option const longopts[] = static bool have_read_stdin; static bool -cksum_slice8 (FILE *fp, const char *file, uint_fast32_t *crc_out, +cksum_slice8 (FILE *fp, char const *file, uint_fast32_t *crc_out, uintmax_t *length_out); static bool - (*cksum_fp)(FILE *, const char *, uint_fast32_t *, + (*cksum_fp)(FILE *, char const *, uint_fast32_t *, uintmax_t *) = cksum_slice8; # if USE_PCLMUL_CRC32 @@ -209,7 +209,7 @@ pclmul_supported (void) # endif /* USE_PCLMUL_CRC32 */ static bool -cksum_slice8 (FILE *fp, const char *file, uint_fast32_t *crc_out, +cksum_slice8 (FILE *fp, char const *file, uint_fast32_t *crc_out, uintmax_t *length_out) { uint32_t buf[BUFLEN/sizeof (uint32_t)]; @@ -269,7 +269,7 @@ cksum_slice8 (FILE *fp, const char *file, uint_fast32_t *crc_out, Return true if successful. */ static bool -cksum (const char *file, bool print_name) +cksum (char const *file, bool print_name) { uint_fast32_t crc = 0; uintmax_t length = 0; |
