From d60c98641bdfc736a7b28165cab2799f201edfe0 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Sat, 6 Jul 1996 02:05:14 +0000 Subject: Include and . (main): Return something. --- daemons/getty.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'daemons/getty.c') diff --git a/daemons/getty.c b/daemons/getty.c index 2138df5e..279422c5 100644 --- a/daemons/getty.c +++ b/daemons/getty.c @@ -26,6 +26,8 @@ #include #include #include +#include +#include /* XXX */ extern int login_tty (int); @@ -53,7 +55,7 @@ print_banner (int fd, char *ttyname) while (cc >= len) { hostname = realloc (hostname, len *= 2); - cc = hostname (hostname, len); + cc = gethostname (hostname, len); if (cc == -1) { hostname[0] = '\0'; @@ -122,4 +124,5 @@ main (int argc, char **argv) execl (_PATH_LOGIN, "login", "-e", arg, "-aNOAUTH_TIMEOUT", 0); error (99, errno, "execl"); + return 1; } -- cgit v1.2.3