summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libexec/telnetd/Makefile4
-rw-r--r--libexec/telnetd/sys_term.c2
-rw-r--r--libexec/telnetd/telnetd.c1
-rw-r--r--libexec/telnetd/telnetd.h7
4 files changed, 10 insertions, 4 deletions
diff --git a/libexec/telnetd/Makefile b/libexec/telnetd/Makefile
index a787fa7e97a..ec89db919b4 100644
--- a/libexec/telnetd/Makefile
+++ b/libexec/telnetd/Makefile
@@ -1,11 +1,11 @@
-# $OpenBSD: Makefile,v 1.13 2001/06/23 19:44:31 hin Exp $
+# $OpenBSD: Makefile,v 1.14 2001/06/26 04:57:44 hin Exp $
# from: @(#)Makefile 8.2 (Berkeley) 12/15/93
# $NetBSD: Makefile,v 1.6 1996/02/24 01:22:12 jtk Exp $
PROG= telnetd
CFLAGS+=-DLINEMODE -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS
-CFLAGS+=-DOLD_ENVIRON -DENV_HACK -I${.CURDIR} -Wall -Wno-unused
+CFLAGS+=-DOLD_ENVIRON -DENV_HACK -I${.CURDIR} -Wall -Werror
SRCS= authenc.c global.c slc.c state.c sys_term.c telnetd.c \
termstat.c utility.c mini_inetd.c socket.c
DPADD= ${LIBUTIL} ${LIBCURSES} ${LIBTELNET}
diff --git a/libexec/telnetd/sys_term.c b/libexec/telnetd/sys_term.c
index 8ffc44e25a5..67a0a5e7dbd 100644
--- a/libexec/telnetd/sys_term.c
+++ b/libexec/telnetd/sys_term.c
@@ -1368,7 +1368,7 @@ start_login(const char *host, int autologin, char *name)
*/
sleep(1);
- execv(new_login, argv.argv);
+ execv(new_login, (char *const*)argv.argv);
save_errno = errno;
syslog(LOG_ERR, "%s: %m\n", new_login);
fatalperror_errno(net, new_login, save_errno);
diff --git a/libexec/telnetd/telnetd.c b/libexec/telnetd/telnetd.c
index 0382c14801b..35f831d1152 100644
--- a/libexec/telnetd/telnetd.c
+++ b/libexec/telnetd/telnetd.c
@@ -1368,3 +1368,4 @@ doeof()
*pfrontp++ = slctab[SLC_EOF].sptr ?
(unsigned char)*slctab[SLC_EOF].sptr : '\004';
}
+
diff --git a/libexec/telnetd/telnetd.h b/libexec/telnetd/telnetd.h
index d7817fe2878..c156a35c33c 100644
--- a/libexec/telnetd/telnetd.h
+++ b/libexec/telnetd/telnetd.h
@@ -34,7 +34,7 @@
*/
-
+#include <err.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -229,3 +229,8 @@ int output_data (const char *format, ...)
__attribute__ ((format (printf, 1, 2)))
#endif
;
+
+void esetenv(const char *, const char *, int);
+void mini_inetd(int);
+void socket_set_reuseaddr (int, int);
+