strace.c: minor style fixes

* strace.c (test_ptrace_seize): Remove excess braces.
(init): Wrap overly long string literal.  Add braces
to the else if branch.
This commit is contained in:
Eugene Syromiatnikov 2017-08-04 09:01:47 +02:00 committed by Dmitry V. Levin
parent a1d9d66142
commit 146444206c

View File

@ -1488,9 +1488,8 @@ test_ptrace_seize(void)
perror_func_msg_and_die("unexpected wait result %d",
tracee_pid);
}
if (WIFSIGNALED(status)) {
if (WIFSIGNALED(status))
return;
}
error_func_msg_and_die("unexpected wait status %#x", status);
}
@ -1819,10 +1818,12 @@ init(int argc, char *argv[])
* when using popen, so prohibit it.
*/
if (followfork >= 2)
error_msg_and_help("piping the output and -ff are mutually exclusive");
error_msg_and_help("piping the output and -ff "
"are mutually exclusive");
shared_log = strace_popen(outfname + 1);
} else if (followfork < 2)
} else if (followfork < 2) {
shared_log = strace_fopen(outfname);
}
} else {
/* -ff without -o FILE is the same as single -f */
if (followfork >= 2)