summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
baa5cf8)
four were due to unused artifacts with HAVE_GETUTXENT not defined.
The fourth was due to control reaching the end of non-void
function message_id(), which had an _exit() call at the end.
static void alrmser (int);
static int message_fd (char **);
static int header_fd (void);
static void alrmser (int);
static int message_fd (char **);
static int header_fd (void);
static void alert (char *, int);
static void alert (char *, int);
+#endif /* HAVE_GETUTXENT */
+#else
+ NMH_UNUSED (tty);
+ NMH_UNUSED (utp);
#endif /* HAVE_GETUTXENT */
exit (RCV_MOK);
#endif /* HAVE_GETUTXENT */
exit (RCV_MOK);
_exit (-1);
closefds (3);
setpgid ((pid_t) 0, getpid ()); /* put in own process group */
_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;
static void
alert (char *tty, int md)
{
static void
alert (char *tty, int md)
{
+#endif /* HAVE_GETUTXENT */