X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/55f65ae2d3baf60396d3359db952460939de03ca..2a5d1b4a8bffefe865487b11cf95b60fde9553fa:/uip/rcvtty.c diff --git a/uip/rcvtty.c b/uip/rcvtty.c index e9163ba7..e91c74c2 100644 --- a/uip/rcvtty.c +++ b/uip/rcvtty.c @@ -167,7 +167,6 @@ main (int argc, char **argv) #endif /* HAVE_GETUTXENT */ exit (RCV_MOK); - return 0; /* dead code to satisfy the compiler */ } @@ -184,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; @@ -236,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 */ }