]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: add a space before open-paren, where lacking
authorJim Meyering <meyering@redhat.com>
Wed, 17 Mar 2010 17:27:52 +0000 (18:27 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 17 Mar 2010 17:28:28 +0000 (18:28 +0100)
* src/copy.c (copy_reg): Likewise.
* src/cut.c (main): Likewise.
* src/dd.c (main): Likewise.
* src/getlimits.c (print_int): Likewise.
* src/join.c (join): Likewise.
* src/pwd.c (logical_getcwd): Likewise.
* src/sort.c (specify_nmerge, mergefps, avoid_trashing_input): Likewise.
(merge): Likewise.
* src/uptime.c (usage): Likewise.

src/copy.c
src/cut.c
src/dd.c
src/getlimits.c
src/join.c
src/pwd.c
src/sort.c
src/uptime.c

index 8399b71307d745e2e3def3833b0466ab809e2977..29f37c9804e46485711d3d619e53754a7bd54068 100644 (file)
@@ -837,7 +837,7 @@ copy_reg (char const *src_name, char const *dst_name,
     {
       bool access_changed = false;
 
-      if (!(sb.st_mode & S_IWUSR) && geteuid() != 0)
+      if (!(sb.st_mode & S_IWUSR) && geteuid () != 0)
         access_changed = fchmod_or_lchmod (dest_desc, dst_name, 0600) == 0;
 
       if (!copy_attr_by_fd (src_name, source_desc, dst_name, dest_desc, x)
index 96692dd4c82f88b7c31e2e66aa8d20740dd80d9b..087981cdfa44e62fd923fa64119042f34680b669 100644 (file)
--- a/src/cut.c
+++ b/src/cut.c
@@ -756,7 +756,7 @@ main (int argc, char **argv)
   int optc;
   bool ok;
   bool delim_specified = false;
-  char *spec_list_string IF_LINT(= NULL);
+  char *spec_list_string IF_LINT (= NULL);
 
   initialize_main (&argc, &argv);
   set_program_name (argv[0]);
index 36a5bc04f66f80665c703eeba712ed33f25843d8..3f54cc7b5968d777bd5fb375109f651ed2b2d247 100644 (file)
--- a/src/dd.c
+++ b/src/dd.c
@@ -1875,7 +1875,7 @@ main (int argc, char **argv)
 
   offset = lseek (STDIN_FILENO, 0, SEEK_CUR);
   input_seekable = (0 <= offset);
-  input_offset = MAX(0, offset);
+  input_offset = MAX (0, offset);
   input_seek_errno = errno;
 
   if (output_file == NULL)
index bf11811c466bdb6f3da6134449d6e6d76eb3fa4b..48d07b5ae47582a9d66b37fa7a6ba8970d08f0db 100644 (file)
@@ -139,14 +139,14 @@ main (int argc, char **argv)
                       usage, AUTHORS, (char const *) NULL);
 
 #define print_int(TYPE)                                                  \
-  snprintf (limit, sizeof(limit), "%"PRIuMAX, (uintmax_t)TYPE##_MAX);    \
+  snprintf (limit, sizeof limit, "%"PRIuMAX, (uintmax_t)TYPE##_MAX);    \
   printf (#TYPE"_MAX=%s\n", limit);                                      \
   oflow = decimal_ascii_add (limit, "1");                                \
   printf (#TYPE"_OFLOW=%s\n", oflow);                                    \
   free (oflow);                                                          \
   if (TYPE##_MIN)                                                        \
     {                                                                    \
-      snprintf (limit, sizeof(limit), "%"PRIdMAX, (intmax_t)TYPE##_MIN); \
+      snprintf (limit, sizeof limit, "%"PRIdMAX, (intmax_t)TYPE##_MIN); \
       printf (#TYPE"_MIN=%s\n", limit);                                  \
       oflow = decimal_ascii_add (limit, "-1");                           \
       printf (#TYPE"_UFLOW=%s\n", oflow);                                \
index 3ecd66e2f99f29982e241fe321c55723a2e0310d..c977116ab8cecf2516655b3ed3196960d75fb3cb 100644 (file)
@@ -625,7 +625,7 @@ join (FILE *fp1, FILE *fp2)
 
   if (join_header_lines && seq1.count && seq2.count)
     {
-      prjoin(seq1.lines[0], seq2.lines[0]);
+      prjoin (seq1.lines[0], seq2.lines[0]);
       prevline[0] = NULL;
       prevline[1] = NULL;
       advance_seq (fp1, &seq1, true, 1);
index b012a6e4e038e45ddde162dc23fe1cae1f89f2e2..c6bd2e73d994c27c1d4f6ec2798d93bb44083e77 100644 (file)
--- a/src/pwd.c
+++ b/src/pwd.c
@@ -315,7 +315,7 @@ logical_getcwd (void)
     }
 
   /* System call validation.  */
-  if (stat (wd, &st1) == 0 && stat (".", &st2) == 0 && SAME_INODE(st1, st2))
+  if (stat (wd, &st1) == 0 && stat (".", &st2) == 0 && SAME_INODE (st1, st2))
     return wd;
   return NULL;
 }
index 5a937dd31f9fd3af499f6bdfecc8f358b022a935..d619c60d5260239a1551f29dec10742fea58791c 100644 (file)
@@ -1240,10 +1240,10 @@ specify_nmerge (int oi, char c, char const *s)
           if (nmerge < 2)
             {
               error (0, 0, _("invalid --%s argument %s"),
-                     long_options[oi].name, quote(s));
+                     long_options[oi].name, quote (s));
               error (SORT_FAILURE, 0,
                      _("minimum --%s argument is %s"),
-                     long_options[oi].name, quote("2"));
+                     long_options[oi].name, quote ("2"));
             }
           else if (max_nmerge < nmerge)
             {
@@ -1258,7 +1258,7 @@ specify_nmerge (int oi, char c, char const *s)
     {
       char max_nmerge_buf[INT_BUFSIZE_BOUND (unsigned int)];
       error (0, 0, _("--%s argument %s too large"),
-             long_options[oi].name, quote(s));
+             long_options[oi].name, quote (s));
       error (SORT_FAILURE, 0,
              _("maximum --%s argument with current rlimit is %s"),
              long_options[oi].name,
@@ -2586,11 +2586,11 @@ mergefps (struct sortfile *files, size_t ntemps, size_t nfiles,
     }
 
   xfclose (ofp, output_file);
-  free(fps);
-  free(buffer);
-  free(ord);
-  free(base);
-  free(cur);
+  free (fps);
+  free (buffer);
+  free (ord);
+  free (base);
+  free (cur);
 }
 
 /* Merge lines from FILES onto OFP.  NTEMPS is the number of temporary
@@ -2789,8 +2789,8 @@ avoid_trashing_input (struct sortfile *files, size_t ntemps,
               files[i].pid = pid;
 
               if (i + num_merged < nfiles)
-                memmove(&files[i + 1], &files[i + num_merged],
-                        num_merged * sizeof *files);
+                memmove (&files[i + 1], &files[i + num_merged],
+                         num_merged * sizeof *files);
               ntemps += 1;
               nfiles -= num_merged - 1;;
               i += num_merged;
@@ -2864,7 +2864,7 @@ merge (struct sortfile *files, size_t ntemps, size_t nfiles,
 
       /* Put the remaining input files into the last NMERGE-sized output
          window, so they will be merged in the next pass.  */
-      memmove(&files[out], &files[in], (nfiles - in) * sizeof *files);
+      memmove (&files[out], &files[in], (nfiles - in) * sizeof *files);
       ntemps += out;
       nfiles -= in - out;
     }
index 20949fce6f4f962b179ad886cdff9f25eca4fc9d..bf4323cc1aa7463c2473d1945fe05c556cc6b6bf 100644 (file)
@@ -208,11 +208,11 @@ in the run queue over the last 1, 5 and 15 minutes."));
          but such a test is hard to write.  For the moment then, we
          have a hack which depends on the preprocessor used at compile
          time to tell us what the running kernel is.  Ugh.  */
-      printf(_("  \
+      printf (_("  \
 Processes in\n\
 an uninterruptible sleep state also contribute to the load average.\n"));
 #else
-      printf(_("\n"));
+      printf (_("\n"));
 #endif
       printf (_("\
 If FILE is not specified, use %s.  %s as FILE is common.\n\