From 8f3983656c3207371a6cada05f56ae96a68a70ac Mon Sep 17 00:00:00 2001 From: Marco S Hyman Date: Tue, 28 Jul 1998 20:18:23 +0000 Subject: change getent/getstr to gtgettent/gtgetstr, the names now used in libtelnet; add prototypes for both functions to ext.h --- libexec/telnetd/telnetd.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'libexec/telnetd/telnetd.c') 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'; -- cgit v1.2.3