X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2e768e3cc0ce768373d3320eca4cdd08b8cf646a..2e9ce3236ae4bdbb7d41d297faf063c564d39f6c:/uip/rcvtty.c diff --git a/uip/rcvtty.c b/uip/rcvtty.c index 5443748c..e91c74c2 100644 --- a/uip/rcvtty.c +++ b/uip/rcvtty.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #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 */ }