X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Frcvtty.c;h=b847b563972e4f0aab765add41c924fe3e0fc581;hb=8ac7f0a5c44a9a81a10e684cea8f2822434b9af0;hp=9eb365f161d98201757101716a69d061980541f0;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/uip/rcvtty.c b/uip/rcvtty.c index 9eb365f..b847b56 100644 --- a/uip/rcvtty.c +++ b/uip/rcvtty.c @@ -167,6 +167,7 @@ main (int argc, char **argv) fclose (uf); exit (RCV_MOK); + return 0; /* dead code to satisfy the compiler */ } @@ -189,7 +190,11 @@ message_fd (char **vec) char tmpfil[BUFSIZ]; struct stat st; +#ifdef HAVE_MKSTEMP + unlink (mkstemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil)))); +#else unlink (mktemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil)))); +#endif if ((fd = open (tmpfil, O_RDWR | O_CREAT | O_TRUNC, 0600)) == NOTOK) return header_fd (); unlink (tmpfil); @@ -239,6 +244,7 @@ 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 */ }