X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/14e7f92ac37c70e4267e8602a036aa4e08a09447..ca2f8cc7e93a21f9f04e0d976ca97feac4802e91:/uip/slocal.c diff --git a/uip/slocal.c b/uip/slocal.c index fe027ee2..df02d0d1 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -26,6 +26,7 @@ #include #include #include +#include "h/done.h" #include #include "sbr/lock_file.h" #include "sbr/m_mktemp.h" @@ -636,7 +637,7 @@ usr_delivery (int fd, char *delivery, int su) } fclose (fp); - return (won ? 0 : -1); + return won ? 0 : -1; } @@ -931,13 +932,13 @@ logged_in (void) if (debug) continue; endutxent(); - return (utmped = DONE); + return utmped = DONE; } } endutxent(); #endif /* HAVE_GETUTXENT */ - return (utmped = NOTOK); + return utmped = NOTOK; } #define check(t,a,b) if (t < a || t > b) return -1 @@ -1091,7 +1092,7 @@ usr_pipe (int fd_arg, char *cmd, char *pgm, char **vec, int suppress) setenv("SHELL", pw->pw_shell, 1); execvp (pgm, vec); - _exit (-1); + _exit(1); default: /* parent process */ @@ -1121,7 +1122,7 @@ usr_pipe (int fd_arg, char *cmd, char *pgm, char **vec, int suppress) else pidstatus (status, stdout, ", failed"); } - return (status == 0 ? 0 : -1); + return status == 0 ? 0 : -1; } /* * Ruthlessly kill the child and anything