]> granicus.if.org Git - strace/commitdiff
strace.c: minor style fixes
authorEugene Syromiatnikov <esyr@redhat.com>
Fri, 4 Aug 2017 07:01:47 +0000 (09:01 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 13 Dec 2017 00:35:31 +0000 (00:35 +0000)
* strace.c (test_ptrace_seize): Remove excess braces.
(init): Wrap overly long string literal.  Add braces
to the else if branch.

strace.c

index 3a0e3208c57a70fd0fd485934607e091f2fea93d..f1f60191f9fda2c79be13fc4d21d3fa759deb282 100644 (file)
--- 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)