diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-07-06 02:05:14 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-07-06 02:05:14 +0000 |
commit | d60c98641bdfc736a7b28165cab2799f201edfe0 (patch) | |
tree | a85d2d4bbb2dfd631b2a05e7bf5a95aa3cd3b4a3 /daemons | |
parent | 229ed26d6eb768ab12250d73dd3d6e3ede0d3c15 (diff) |
Include <sys/utsname.h> and <stdlib.h>.
(main): Return something.
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/getty.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <sys/stat.h> #include <errno.h> #include <error.h> +#include <sys/utsname.h> +#include <stdlib.h> /* 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; } |