aboutsummaryrefslogtreecommitdiffstats
path: root/src/chmod.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/chmod.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/chmod.c')
-rw-r--r--src/chmod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chmod.c b/src/chmod.c
index 6bd2ee4a5..78d9c9cba 100644
--- a/src/chmod.c
+++ b/src/chmod.c
@@ -139,12 +139,12 @@ mode_changed (int dir_fd, char const *file, char const *file_full_name,
CHANGED describes what (if anything) has happened. */
static void
-describe_change (const char *file, mode_t old_mode, mode_t mode,
+describe_change (char const *file, mode_t old_mode, mode_t mode,
enum Change_status changed)
{
char perms[12]; /* "-rwxrwxrwx" ls-style modes. */
char old_perms[12];
- const char *fmt;
+ char const *fmt;
if (changed == CH_NOT_APPLIED)
{