]> diplodocus.org Git - nmh/commitdiff
Don't `else' after return. Simplify control flow.
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 20 Oct 2016 22:22:04 +0000 (23:22 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Thu, 20 Oct 2016 22:34:05 +0000 (23:34 +0100)
sbr/pidstatus.c

index 82f2d11..ded38ed 100644 (file)
@@ -47,7 +47,9 @@ pidstatus (int status, FILE *fp, char *cp)
            fprintf (fp, "exit %d\n", signum);
        }
        return signum;
-    } else if (WIFSIGNALED(status)) {
+    }
+
+    if (WIFSIGNALED(status)) {
        /* If child process terminated due to receipt of a signal */
        signum = WTERMSIG(status);
        if (signum != SIGINT) {