summaryrefslogtreecommitdiff
path: root/libexec/telnetd/utility.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1998-03-25 18:43:51 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1998-03-25 18:43:51 +0000
commit430fe69f326680c683be8cc140b83f55afe620bf (patch)
treeb6ef20074174927a1821725c5103b700b7939400 /libexec/telnetd/utility.c
parent26b9fc25ce79b1d3eb02beed981e952de77f3a55 (diff)
cleanup and please -Wall
Diffstat (limited to 'libexec/telnetd/utility.c')
-rw-r--r--libexec/telnetd/utility.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/libexec/telnetd/utility.c b/libexec/telnetd/utility.c
index 85e01b9e1ff..65df58691f0 100644
--- a/libexec/telnetd/utility.c
+++ b/libexec/telnetd/utility.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: utility.c,v 1.10 1998/03/12 04:53:17 art Exp $ */
+/* $OpenBSD: utility.c,v 1.11 1998/03/25 18:43:50 art Exp $ */
/* $NetBSD: utility.c,v 1.9 1996/02/28 20:38:29 thorpej Exp $ */
/*
@@ -39,13 +39,19 @@
static char sccsid[] = "@(#)utility.c 8.4 (Berkeley) 5/30/95";
static char rcsid[] = "$NetBSD: utility.c,v 1.9 1996/02/28 20:38:29 thorpej Exp $";
#else
-static char rcsid[] = "$OpenBSD: utility.c,v 1.10 1998/03/12 04:53:17 art Exp $";
+static char rcsid[] = "$OpenBSD: utility.c,v 1.11 1998/03/25 18:43:50 art Exp $";
#endif
#endif /* not lint */
#include <sys/utsname.h>
#define PRINTOPTIONS
#include "telnetd.h"
+#if defined(AUTHENTICATION)
+#include <libtelnet/auth.h>
+#endif
+#if defined(ENCRYPTION)
+#include <libtelnet/encrypt.h>
+#endif
/*
* utility functions performing io related tasks
@@ -548,7 +554,7 @@ printsub(direction, pointer, length)
unsigned char *pointer; /* where suboption data sits */
int length; /* length of suboption data */
{
- register int i;
+ register int i = 0;
char buf[512];
if (!(diagnostic & TD_OPTIONS))