From: Eugene Syromiatnikov Date: Fri, 4 Aug 2017 07:01:47 +0000 (+0200) Subject: strace.c: minor style fixes X-Git-Tag: v4.21~268 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=146444206c150eb68f059d7682528fff9e5b8376;p=strace 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. --- diff --git a/strace.c b/strace.c index 3a0e3208..f1f60191 100644 --- a/strace.c +++ b/strace.c @@ -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)