summaryrefslogtreecommitdiffstats
path: root/lib/libtelnet/getent.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-08-20 12:04:53 +0000
committermarkm <markm@FreeBSD.org>2001-08-20 12:04:53 +0000
commit98d3c6bc197eb678ca324345c95491f2226219c2 (patch)
tree122fb8c599a7c1722fcbffd583c96fc5ac5dee5c /lib/libtelnet/getent.c
parente5aeafb88ac1c0cc0a8ad38e45fc3ba78dd10c08 (diff)
downloadFreeBSD-src-98d3c6bc197eb678ca324345c95491f2226219c2.zip
FreeBSD-src-98d3c6bc197eb678ca324345c95491f2226219c2.tar.gz
No functional changes, but:
o unifdef AUTHENTICATE. We have never compiled this code, and its doubtful it will even work in this case. o Style changes (some ansification, some comment updating) o Diff reduction and code style merging with crypto telnet.
Diffstat (limited to 'lib/libtelnet/getent.c')
-rw-r--r--lib/libtelnet/getent.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/libtelnet/getent.c b/lib/libtelnet/getent.c
index 0956a2a..03bef5f 100644
--- a/lib/libtelnet/getent.c
+++ b/lib/libtelnet/getent.c
@@ -32,17 +32,23 @@
*/
#ifndef lint
+#if 0
static char sccsid[] = "@(#)getent.c 8.2 (Berkeley) 12/15/93";
+#else
+static const char rcsid[] =
+ "$FreeBSD$";
+#endif
#endif /* not lint */
+#ifdef HAS_CGETENT
#include <stdlib.h>
+#endif
static char *area;
/*ARGSUSED*/
int
-getent(cp, name)
-char *cp, *name;
+getent(char *cp, char *name)
{
#ifdef HAS_CGETENT
char *dba[2];
@@ -58,8 +64,7 @@ char *cp, *name;
#ifndef SOLARIS
/*ARGSUSED*/
char *
-Getstr(id, cpp)
-char *id, **cpp;
+Getstr(char *id, char **cpp)
{
# ifdef HAS_CGETENT
char *answer;
OpenPOWER on IntegriCloud