[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
- split --filter, nearly ready, Jim Meyering, 2011/04/30
- [PATCH 4/8] split: update NEWS, Jim Meyering, 2011/04/30
- [PATCH 7/8] split: don't rely on knowledge that INT_BUFSIZE_BOUND <= SIG2STR_MAX, Jim Meyering, 2011/04/30
- [PATCH 3/8] split: add tests, Jim Meyering, 2011/04/30
- [PATCH 6/8] strip: style: use braces around 1-stmt-but-multi-line blocks,
Jim Meyering <=
- [PATCH 2/8] split: remove short-named -f option; improve diagnostics, Jim Meyering, 2011/04/30
- [PATCH 5/8] split: mark a string for translation, Jim Meyering, 2011/04/30
- [PATCH 8/8] doc: document split's new --filter=CMD option, Jim Meyering, 2011/04/30
- [PATCH 1/8] split: accept new output --filter option, Jim Meyering, 2011/04/30