aboutsummaryrefslogtreecommitdiffstats
path: root/src/copy.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/copy.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/copy.c')
-rw-r--r--src/copy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/copy.c b/src/copy.c
index 159556d05..9dbc694eb 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -855,7 +855,7 @@ copy_attr_free (struct error_context *ctx _GL_UNUSED,
FIXME: Should we handle POSIX ACLs similarly?
Return zero to skip. */
static int
-check_selinux_attr (const char *name, struct error_context *ctx)
+check_selinux_attr (char const *name, struct error_context *ctx)
{
return STRNCMP_LIT (name, "security.selinux")
&& attr_copy_check_permissions (name, ctx);
@@ -1062,7 +1062,7 @@ set_owner (const struct cp_options *x, char const *dst_name, int dest_desc,
DEST_NAME if defined. */
static void
-set_author (const char *dst_name, int dest_desc, const struct stat *src_sb)
+set_author (char const *dst_name, int dest_desc, const struct stat *src_sb)
{
#if HAVE_STRUCT_STAT_ST_AUTHOR
/* FIXME: Modify the following code so that it does not
@@ -2382,7 +2382,7 @@ copy_internal (char const *src_name, char const *dst_name,
if (x->backup_type != numbered_backups
&& source_is_dst_backup (srcbase, &src_sb, dst_name))
{
- const char *fmt;
+ char const *fmt;
fmt = (x->move_mode
? _("backing up %s might destroy source; %s not moved")
: _("backing up %s might destroy source; %s not copied"));