diff options
Diffstat (limited to 'contrib/lukemftpd/src/logutmp.c')
-rw-r--r-- | contrib/lukemftpd/src/logutmp.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/contrib/lukemftpd/src/logutmp.c b/contrib/lukemftpd/src/logutmp.c index 7ef6437..cdd05bc 100644 --- a/contrib/lukemftpd/src/logutmp.c +++ b/contrib/lukemftpd/src/logutmp.c @@ -32,7 +32,16 @@ * SUCH DAMAGE. */ -#include "lukemftpd.h" +#include <sys/types.h> + +#include <fcntl.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <ttyent.h> +#include <unistd.h> +#include <utmp.h> +#include <util.h> typedef struct utmp UTMP; @@ -60,7 +69,7 @@ login(const UTMP *ut) } if ((topslot < 0) || ((fd < 0) && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) < 0)) - return; + return; /* * Now find a slot that's not in use... |