static void alrmser (int);
static int message_fd (char **);
static int header_fd (void);
+#if HAVE_GETUTXENT
static void alert (char *, int);
+#endif /* HAVE_GETUTXENT */
int
}
}
endutxent();
+#else
+ NMH_UNUSED (tty);
+ NMH_UNUSED (utp);
#endif /* HAVE_GETUTXENT */
exit (RCV_MOK);
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;
_exit (-1);
closefds (3);
setpgid ((pid_t) 0, getpid ()); /* put in own process group */
- execvp (vec[0], vec);
- _exit (-1);
+ if (execvp (vec[0], vec) == NOTOK) {
+ _exit (-1);
+ }
+
+ return NOTOK;
}
}
+#if HAVE_GETUTXENT
static void
alert (char *tty, int md)
{
close (td);
}
-
+#endif /* HAVE_GETUTXENT */