]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: space between ‘char’ and ‘*’ master
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Jan 2026 19:20:57 +0000 (11:20 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Jan 2026 19:25:36 +0000 (11:25 -0800)
src/basenc.c
src/copy.c
src/expand-common.c
src/ls.c
src/numfmt.c
src/system.h
tests/df/no-mtab-status.sh
tests/nproc/nproc-quota.sh
tests/rm/rm-readdir-fail.sh

index 4e0eb92fb4f9e5aff88b5251d6c6f56ccb08700e..cd86b106a661756ba5660d25778bbd6925f65d72 100644 (file)
@@ -1272,7 +1272,7 @@ base58_encode_ctx (struct base_encode_context *ctx,
 }
 
 static void
-base58_encode (char constdata, size_t data_len,
+base58_encode (char const *data, size_t data_len,
                char *out, idx_t *outlen)
 {
   affirm (base_length (data_len) <= *outlen);
index 198f762e9ff1b0732ae9b8c246cbd9302835f39c..c76f936fd5ecbdf1ef7c8fd4f19d04dff61a0bdb 100644 (file)
@@ -131,7 +131,7 @@ static char const *top_level_dst_name;
 /* debug info about the last file copy.  */
 static struct copy_debug copy_debug;
 
-static const char*
+static const char *
 copy_debug_string (enum copy_debug_val debug_val)
 {
   switch (debug_val)
@@ -148,7 +148,7 @@ copy_debug_string (enum copy_debug_val debug_val)
     }
 }
 
-static const char*
+static const char *
 copy_debug_sparse_string (enum copy_debug_val debug_val)
 {
   switch (debug_val)
index 92e7695ab3172fc167aa78e296c1b8c39fd01192..f63e6d80b820637060d60e9520157a420b8bba90 100644 (file)
@@ -399,7 +399,7 @@ cleanup_file_list_stdin (void)
 /* Emit the --help output for --tabs=LIST option accepted by expand and
    unexpand.  */
 extern void
-emit_tab_list_info (char constprogram)
+emit_tab_list_info (char const *program)
 {
   /* suppress syntax check for emit_mandatory_arg_note() */
   oputs_ (program, _("\
index 75215141fe610b6b48c97d853abc5e8e8cd31cf0..70ddba10d0071d59cf4605730ec20c5b852e601e 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -4902,7 +4902,7 @@ print_color_indicator (const struct bin_str *ind)
 
 /* Returns color indicator or NULL if none.  */
 ATTRIBUTE_PURE
-static const struct bin_str*
+static const struct bin_str *
 get_color_indicator (const struct fileinfo *f, bool symlink_target)
 {
   enum indicator_no type;
index 5484056361cddeb94cdfa931a505f7cfa3baee05..fb6cb33969ce95f03c68d8136a5d9e5d0af15897 100644 (file)
@@ -1406,7 +1406,7 @@ is_utf8_charset (void)
    Return a pointer to the character, or NULL if not found.  */
 ATTRIBUTE_PURE
 static char *
-mbsmbchr (char const* s, char const* c)
+mbsmbchr (char const *s, char const *c)
 {
   unsigned char uc = *c;
    /* GB18030 is the most restrictive for the 0x30 optimization below.  */
@@ -1420,7 +1420,7 @@ mbsmbchr (char const* s, char const* c)
 
 /* Return a pointer to the beginning of the next field in line.
    The line pointer is moved to the end of the next field. */
-static char*
+static char *
 next_field (char **line)
 {
   char *field_start = *line;
index 7e1fdbff0328e265b3b45c1b2ce80e37e631dca3..6a84d1cc32c10a00296869bf15f8248a74003114 100644 (file)
@@ -546,7 +546,7 @@ is_nul (void const *buf, size_t length)
 
 #define oputs(option) oputs_ (PROGRAM_NAME, option)
 static inline void
-oputs_ (MAYBE_UNUSED char constprogram, char const *option)
+oputs_ (MAYBE_UNUSED char const *program, char const *option)
 {
   static int help_no_sgr =
 #if ! defined MANUAL_URL && ! defined BOLD_MAN_REFS
@@ -567,7 +567,7 @@ oputs_ (MAYBE_UNUSED char const* program, char const *option)
       return;
     }
 
-  char constfirst_word = option + strspn (option, " \t\n");
+  char const *first_word = option + strspn (option, " \t\n");
   char const *option_text = strchr (option, '-');
   if (!option_text)
     option_text = first_word;  /* for dd option syntax.  */
@@ -656,7 +656,7 @@ oputs_ (MAYBE_UNUSED char const* program, char const *option)
 #define oprintf(...) oprintf_ (PROGRAM_NAME, __VA_ARGS__)
 ATTRIBUTE_FORMAT ((printf, 2, 3))
 static inline void
-oprintf_ (char constprogram, char const *message, ...)
+oprintf_ (char const *program, char const *message, ...)
 {
   va_list args;
   char *buf;
@@ -751,7 +751,7 @@ the VERSION_CONTROL environment variable.  Here are the values:\n\
 #define emit_symlink_recurse_options(default_opt) \
  emit_symlink_recurse_options_ (PROGRAM_NAME, default_opt)
 static inline void
-emit_symlink_recurse_options_ (char constprogram, char const *default_opt)
+emit_symlink_recurse_options_ (char const *program, char const *default_opt)
 {
       printf (_("\
 \n\
index af8dd721fc47a641ef1e92cbfbfe725eb5072633..6573476ffb2375bfd481fe2882fdb273ee7b66b0 100755 (executable)
@@ -40,9 +40,9 @@ sed 's/streq/0==str''cmp/' > k.c <<EOF || framework_failure_
 #include <stdarg.h>
 #include <dlfcn.h>
 
-static FILE* (*fopen_func)(const char *, const char *);
+static FILE *(*fopen_func) (const char *, const char *);
 
-FILEfopen(const char *path, const char *mode)
+FILE *fopen(const char *path, const char *mode)
 {
 
   /* get reference to original (libc provided) fopen */
index 01ffd38fffb9a0769908a2db2e15f67313f71755..0d49231338045bec1c86d22fca5869c1f6b22a8f 100755 (executable)
@@ -32,7 +32,7 @@ int
 sched_getscheduler (pid_t pid)
 {
   fclose (fopen ("preloaded","w")); /* marker for preloaded interception */
-  FILEpolicyf = fopen ("/proc/self/sched", "r");
+  FILE *policyf = fopen ("/proc/self/sched", "r");
   int policy;
   #define fscanfmt fscanf  /* Avoid syntax check.  */
   if (pid == 0 && fscanfmt (policyf, "policy : %d", &policy) == 1)
index 091bbbc5a1b248100d220f7bc04cf84d889d8c34..130685cbac856266c0521d5f661a50f7dbe7f83f 100755 (executable)
@@ -56,7 +56,7 @@ struct dirent *readdir (DIR *dirp)
       errno = ESRCH;
       return NULL;
     }
-  struct direntd;
+  struct dirent *d;
   if (! (d = real_readdir (dirp)))
     {
       fprintf (stderr, "Failed to get dirent\n");