Update brace style.

Add braces around single-line blocks, and remove line breaks before
function-opening braces.

This resolves #537.
This commit is contained in:
Jason Evans
2017-01-15 16:56:30 -08:00
parent 5154ff32ee
commit c4c2592c83
119 changed files with 2971 additions and 3572 deletions

View File

@@ -4,8 +4,7 @@
#include <sys/wait.h>
#endif
TEST_BEGIN(test_fork)
{
TEST_BEGIN(test_fork) {
#ifndef _WIN32
void *p;
pid_t pid;
@@ -32,8 +31,9 @@ TEST_BEGIN(test_fork)
/* Parent. */
while (true) {
if (waitpid(pid, &status, 0) == -1)
if (waitpid(pid, &status, 0) == -1) {
test_fail("Unexpected waitpid() failure");
}
if (WIFSIGNALED(status)) {
test_fail("Unexpected child termination due to "
"signal %d", WTERMSIG(status));
@@ -56,8 +56,7 @@ TEST_BEGIN(test_fork)
TEST_END
int
main(void)
{
main(void) {
return (test(
test_fork));
}