]> diplodocus.org Git - nmh/blobdiff - uip/rcvtty.c
More man page minor fixup.
[nmh] / uip / rcvtty.c
index 5443748c99b56674318ad67f5814e3d1630fc181..e91c74c21b6274cd1cea5aef41f08487853b43fc 100644 (file)
@@ -19,7 +19,6 @@
 #include <h/scansbr.h>
 #include <h/tws.h>
 #include <h/mts.h>
-#include <signal.h>
 #include <fcntl.h>
 
 #ifdef HAVE_GETUTXENT
@@ -168,7 +167,6 @@ main (int argc, char **argv)
 #endif /* HAVE_GETUTXENT */
 
     exit (RCV_MOK);
-    return 0;  /* dead code to satisfy the compiler */
 }
 
 
@@ -185,7 +183,9 @@ static int
 message_fd (char **vec)
 {
     pid_t child_id;
-    int bytes, fd, seconds;
+    int bytes, seconds;
+    /* volatile to prevent "might be clobbered" warning from gcc: */
+    volatile int fd;
     char tmpfil[BUFSIZ];
     struct stat st;
 
@@ -237,7 +237,6 @@ message_fd (char **vec)
     setpgid ((pid_t) 0, getpid ());    /* put in own process group */
     execvp (vec[0], vec);
     _exit (-1);
-    return 1;  /* dead code to satisfy compiler */
 }