coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 6/8] strip: style: use braces around 1-stmt-but-multi-line blocks


From: Jim Meyering
Subject: [PATCH 6/8] strip: style: use braces around 1-stmt-but-multi-line blocks
Date: Sat, 30 Apr 2011 15:31:07 +0200

From: Jim Meyering <address@hidden>

* src/strip.c (closeout): As above, per guidelines in HACKING.
---
 src/split.c |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/src/split.c b/src/split.c
index 4aa7d79..bd63fcf 100644
--- a/src/split.c
+++ b/src/split.c
@@ -354,9 +354,12 @@ closeout (FILE *fp, int fd, pid_t pid, char const *name)
         error (EXIT_FAILURE, errno, "%s", name);
       int j;
       for (j = 0; j < n_open_pipes; ++j)
-        if (open_pipes[j] == fd) {
-          open_pipes[j] = open_pipes[--n_open_pipes];
-          break;
+        {
+          if (open_pipes[j] == fd)
+            {
+              open_pipes[j] = open_pipes[--n_open_pipes];
+              break;
+            }
         }
     }
   if (pid > 0)
@@ -385,9 +388,11 @@ closeout (FILE *fp, int fd, pid_t pid, char const *name)
                    name, ex, filter_command);
         }
       else
-        /* shouldn't happen.  */
-        error (EXIT_FAILURE, 0,
-               _("unknown status from command (0x%X)"), wstatus);
+        {
+          /* shouldn't happen.  */
+          error (EXIT_FAILURE, 0,
+                 _("unknown status from command (0x%X)"), wstatus);
+        }
     }
 }

-- 
1.7.5.134.g1c08b




reply via email to

[Prev in Thread] Current Thread [Next in Thread]