diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 1998-07-28 20:18:23 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 1998-07-28 20:18:23 +0000 |
commit | 8f3983656c3207371a6cada05f56ae96a68a70ac (patch) | |
tree | 135130fbc213733d15408f46d94091058f6b762a /libexec/telnetd/telnetd.c | |
parent | 01f867649ff2cbd8930666da6d2aa0c9c45d22ec (diff) |
change getent/getstr to gtgettent/gtgetstr, the names now used
in libtelnet; add prototypes for both functions to ext.h
Diffstat (limited to 'libexec/telnetd/telnetd.c')
-rw-r--r-- | libexec/telnetd/telnetd.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/libexec/telnetd/telnetd.c b/libexec/telnetd/telnetd.c index 9f0e6f07548..bab0c144d8d 100644 --- a/libexec/telnetd/telnetd.c +++ b/libexec/telnetd/telnetd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: telnetd.c,v 1.14 1998/07/27 18:28:20 millert Exp $ */ +/* $OpenBSD: telnetd.c,v 1.15 1998/07/28 20:18:22 marc Exp $ */ /* $NetBSD: telnetd.c,v 1.6 1996/03/20 04:25:57 tls Exp $ */ /* @@ -45,7 +45,7 @@ static char copyright[] = static char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95"; static char rcsid[] = "$NetBSD: telnetd.c,v 1.5 1996/02/28 20:38:23 thorpej Exp $"; #else -static char rcsid[] = "$OpenBSD: telnetd.c,v 1.14 1998/07/27 18:28:20 millert Exp $"; +static char rcsid[] = "$OpenBSD: telnetd.c,v 1.15 1998/07/28 20:18:22 marc Exp $"; #endif #endif /* not lint */ @@ -1135,13 +1135,12 @@ telnet(f, p, host) hostinfo = 0; #endif - if (getent(defent, gettyname) == 1) { - char *getstr(); + if (gtgetent(defent, gettyname) == 1) { char *cp=defstrs; - HE = getstr("he", &cp); - HN = getstr("hn", &cp); - IM = getstr("im", &cp); + HE = gtgetstr("he", &cp); + HN = gtgetstr("hn", &cp); + IM = gtgetstr("im", &cp); if (HN && *HN) { strncpy(host_name, HN, sizeof host_name - 1); host_name[sizeof host_name -1] = '\0'; |