diff options
| author | Mark Eichin <eichin@mit.edu> | 1994-08-14 04:34:43 +0000 |
|---|---|---|
| committer | Mark Eichin <eichin@mit.edu> | 1994-08-14 04:34:43 +0000 |
| commit | f7508f2fe7a6f308d945d548defa54a82fc696c7 (patch) | |
| tree | b117de9d6acf68c4a2359c34378e2fdf930f8280 /src | |
| parent | 23d9ebf77e34d8a9e07415b1693d77ada0f8ba82 (diff) | |
| download | krb5-f7508f2fe7a6f308d945d548defa54a82fc696c7.tar.gz krb5-f7508f2fe7a6f308d945d548defa54a82fc696c7.tar.xz krb5-f7508f2fe7a6f308d945d548defa54a82fc696c7.zip | |
lint
unistd.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4133 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/appl/telnet/telnet/commands.c | 11 | ||||
| -rw-r--r-- | src/appl/telnet/telnet/configure.in | 1 | ||||
| -rw-r--r-- | src/appl/telnet/telnet/utilities.c | 2 |
3 files changed, 10 insertions, 4 deletions
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 <fcntl.h> #endif /* CRAY */ +#include <stdio.h> +#include <string.h> +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif #include <signal.h> #include <netdb.h> #include <ctype.h> @@ -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<y)? x:y) unsigned char *pThis; int offset; - extern pettydump; offset = 0; @@ -819,7 +818,6 @@ printsub(direction, pointer, length) break; default: - def_case: if (isprint(pointer[i]) && pointer[i] != '"') { if (noquote) { putc('"', NetTrace); |
