aboutsummaryrefslogtreecommitdiffstats
path: root/src/du.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/du.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/du.c')
-rw-r--r--src/du.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/du.c b/src/du.c
index 742e4cc5c..d4760a36c 100644
--- a/src/du.c
+++ b/src/du.c
@@ -377,7 +377,7 @@ hash_ins (struct di_set *di_set, ino_t ino, dev_t dev)
in FORMAT. */
static void
-show_date (const char *format, struct timespec when, timezone_t tz)
+show_date (char const *format, struct timespec when, timezone_t tz)
{
struct tm tm;
if (localtime_rz (tz, &when.tv_sec, &tm))
@@ -407,7 +407,7 @@ print_only_size (uintmax_t n_bytes)
/* Print size (and optionally time) indicated by *PDUI, followed by STRING. */
static void
-print_size (const struct duinfo *pdui, const char *string)
+print_size (const struct duinfo *pdui, char const *string)
{
print_only_size (opt_inodes
? pdui->inodes
@@ -503,7 +503,7 @@ process_file (FTS *fts, FTSENT *ent)
directory at the specified level. */
static struct dulevel *dulvl;
- const char *file = ent->fts_path;
+ char const *file = ent->fts_path;
const struct stat *sb = ent->fts_statp;
int info = ent->fts_info;