configure, configure.in stamp-h.in, and uip/Makefile.in modified to fix
[mmh] / uip / rcvtty.c
index cb194dd..464a027 100644 (file)
@@ -167,6 +167,7 @@ main (int argc, char **argv)
 
     fclose (uf);
     exit (RCV_MOK);
+    return 0;  /* dead code to satisfy the compiler */
 }
 
 
@@ -190,13 +191,13 @@ message_fd (char **vec)
     struct stat st;
 
 #ifdef HAVE_MKSTEMP
-    unlink (mkstemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil))));
+    fd = 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);
+#endif
 
     if ((child_id = vfork()) == NOTOK) {
        /* fork error */
@@ -243,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 */
 }