summaryrefslogtreecommitdiffstats
path: root/lib/libtelnet
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-07-12 18:57:58 +0000
committerjkh <jkh@FreeBSD.org>1996-07-12 18:57:58 +0000
commitc4d4a99d31762beef936f34571330923e9300da9 (patch)
treec116431af8e1f042b25e0f70c63c437cf7ff8d63 /lib/libtelnet
parent6657f01bfd009bbf4ec0481a17712259abf8ea77 (diff)
downloadFreeBSD-src-c4d4a99d31762beef936f34571330923e9300da9.zip
FreeBSD-src-c4d4a99d31762beef936f34571330923e9300da9.tar.gz
General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
Diffstat (limited to 'lib/libtelnet')
-rw-r--r--lib/libtelnet/genget.c1
-rw-r--r--lib/libtelnet/getent.c3
-rw-r--r--lib/libtelnet/misc.c2
3 files changed, 5 insertions, 1 deletions
diff --git a/lib/libtelnet/genget.c b/lib/libtelnet/genget.c
index a43579f..29c7519 100644
--- a/lib/libtelnet/genget.c
+++ b/lib/libtelnet/genget.c
@@ -49,7 +49,6 @@ static char sccsid[] = "@(#)genget.c 8.1 (Berkeley) 6/4/93";
isprefix(s1, s2)
register char *s1, *s2;
{
- register int n = 0;
char *os1;
register char c1, c2;
diff --git a/lib/libtelnet/getent.c b/lib/libtelnet/getent.c
index 05626f1..e87bf66 100644
--- a/lib/libtelnet/getent.c
+++ b/lib/libtelnet/getent.c
@@ -35,9 +35,12 @@
static char sccsid[] = "@(#)getent.c 8.2 (Berkeley) 12/15/93";
#endif /* not lint */
+#include <stdlib.h>
+
static char *area;
/*ARGSUSED*/
+int
getent(cp, name)
char *cp, *name;
{
diff --git a/lib/libtelnet/misc.c b/lib/libtelnet/misc.c
index 241c88a..d4242b6 100644
--- a/lib/libtelnet/misc.c
+++ b/lib/libtelnet/misc.c
@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/4/93";
#endif /* not lint */
+#include <stdio.h>
+#include <stdlib.h>
#include "misc.h"
char *RemoteHostName;
OpenPOWER on IntegriCloud