From: Mark Eichin Date: Sun, 14 Aug 1994 04:34:43 +0000 (+0000) Subject: lint X-Git-Tag: krb5-1.0-beta4.3~190 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f7508f2fe7a6f308d945d548defa54a82fc696c7;p=krb5.git lint unistd.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4133 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/telnet/commands.c b/src/appl/telnet/telnet/commands.c index a78847a20..f5fd98d57 100644 --- a/src/appl/telnet/telnet/commands.c +++ b/src/appl/telnet/telnet/commands.c @@ -50,6 +50,11 @@ static char sccsid[] = "@(#)commands.c 8.1 (Berkeley) 6/6/93"; #include #endif /* CRAY */ +#include +#include +#ifdef HAVE_UNISTD_H +#include +#endif #include #include #include @@ -293,7 +298,6 @@ sendcmd(argc, argv) { int count; /* how many bytes we are going to need to send */ int i; - int question = 0; /* was at least one argument a question */ struct sendlist *s; /* pointer to current command */ int success = 0; int needconnect = 0; @@ -1089,6 +1093,7 @@ dokludgemode() send_wont(TELOPT_LINEMODE, 1); send_dont(TELOPT_SGA, 1); send_dont(TELOPT_ECHO, 1); + return 1; /* I'm guessing here -- eichin -- XXX */ } #endif @@ -1140,12 +1145,14 @@ dolmmode(bit, on) int setmode(bit) + int bit; { return dolmmode(bit, 1); } int clearmode(bit) + int bit; { return dolmmode(bit, 0); } @@ -1840,7 +1847,7 @@ env_default(init, welldefined) if (init) { nep = &envlisthead; - return; + return NULL; /* guessing here too -- eichin -- XXX */ } if (nep) { while (nep = nep->next) { diff --git a/src/appl/telnet/telnet/configure.in b/src/appl/telnet/telnet/configure.in index 29d624d0e..7e4ca27b0 100644 --- a/src/appl/telnet/telnet/configure.in +++ b/src/appl/telnet/telnet/configure.in @@ -8,6 +8,7 @@ AC_SET_BUILDTOP AC_PROG_INSTALL KRB_INCLUDE ISODE_INCLUDE +AC_HAVE_HEADERS(unistd.h) AC_HAVE_LIBRARY(termcap,AC_DEFINE(TERMCAP) LIBS="$LIBS -ltermcap") AC_HEADER_CHECK(termios.h,AC_DEFINE(USE_TERMIO) ac_termio=1) diff --git a/src/appl/telnet/telnet/utilities.c b/src/appl/telnet/telnet/utilities.c index c40fccc6e..051486692 100644 --- a/src/appl/telnet/telnet/utilities.c +++ b/src/appl/telnet/telnet/utilities.c @@ -134,7 +134,6 @@ Dump(direction, buffer, length) # define min(x,y) ((x