lint
authorMark Eichin <eichin@mit.edu>
Sun, 14 Aug 1994 04:34:43 +0000 (04:34 +0000)
committerMark Eichin <eichin@mit.edu>
Sun, 14 Aug 1994 04:34:43 +0000 (04:34 +0000)
unistd.h

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4133 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/telnet/telnet/commands.c
src/appl/telnet/telnet/configure.in
src/appl/telnet/telnet/utilities.c

index a78847a2021ed9936f5451ffd3a3b895b35c9709..f5fd98d572af999eed2507d643a9f351def9822e 100644 (file)
@@ -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) {
index 29d624d0e2dec912383fd976d2a0a75e1ec532da..7e4ca27b074693b7acf65d4de19a03a07df1e783 100644 (file)
@@ -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)
index c40fccc6ee5084eedcf6b23c4412531b4278f161..05148669247b6c32fc6a359c114f43805a92b063 100644 (file)
@@ -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);