]> diplodocus.org Git - nmh/blobdiff - sbr/pidwait.c
Fix invalid pointer arithmetic.
[nmh] / sbr / pidwait.c
index a7d92119e920ba5a6b5f0b71e7a55f933c1ea69e..bd6602cb455a72e7f38626e6ca09cc19f2c42d03 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * pidwait.c -- wait for child to exit
+/* pidwait.c -- wait for child to exit
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -9,7 +7,6 @@
 
 #include <h/mh.h>
 #include <h/signals.h>
-#include <signal.h>
 
 int
 pidwait (pid_t id, int sigsok)
@@ -34,5 +31,5 @@ pidwait (pid_t id, int sigsok)
        SIGNAL (SIGQUIT, qstat);
     }
 
-    return (pid == -1 ? -1 : status);
+    return pid == -1 ? -1 : status;
 }