punt unused vars
authorMark Eichin <eichin@mit.edu>
Sun, 14 Aug 1994 04:23:53 +0000 (04:23 +0000)
committerMark Eichin <eichin@mit.edu>
Sun, 14 Aug 1994 04:23:53 +0000 (04:23 +0000)
use stdio.h
commands.c: use stdio, string, unistd; fix return values

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

src/appl/telnet/libtelnet/auth.c
src/appl/telnet/libtelnet/forward.c
src/appl/telnet/libtelnet/genget.c
src/appl/telnet/libtelnet/kerberos5.c
src/appl/telnet/libtelnet/misc.c

index 142f8ae9e41de995d8697d7c3f224ece5e19d24a..74411e52737e74c968df5ce78532289c13cec859 100644 (file)
@@ -521,7 +521,6 @@ auth_name(data, cnt)
        unsigned char *data;
        int cnt;
 {
-       Authenticator *ap;
        unsigned char savename[256];
 
        if (cnt < 1) {
index 8ae34edbac84ec14ea7fde9eb3dd68de981a82df..288eb164556dfa11830efd157093cd8c615f79b6 100644 (file)
@@ -61,7 +61,6 @@ get_for_creds(etype, sumtype, rhost, client, enc_key, forwardable, outbuf)
     struct hostent *hp;
     krb5_address **addrs;
     krb5_error_code retval;
-    krb5_data *scratch;
     krb5_kdc_rep *dec_rep;
     krb5_error *err_reply;
     krb5_response tgsrep;
@@ -388,7 +387,6 @@ rd_and_store_for_creds(inbuf, ticket, lusername)
      krb5_ticket *ticket;
      char *lusername;
 {
-    krb5_encrypt_block eblock;
     krb5_creds creds;
     krb5_error_code retval;
     char ccname[35];
index a43579f82ffbfb941fa8ca5bed0328351071f309..29c7519887f716e3d4248bbbc8211829a7db898d 100644 (file)
@@ -49,7 +49,6 @@ static char sccsid[] = "@(#)genget.c  8.1 (Berkeley) 6/4/93";
 isprefix(s1, s2)
        register char *s1, *s2;
 {
-        register int n = 0;
         char *os1;
        register char c1, c2;
 
index 88bb2fceb34d2f34a7bec828f8aa7465ede3d79a..4028c3c649cb574a8e1f194b7bc89c8624c7bd93 100644 (file)
@@ -185,12 +185,8 @@ kerberos5_init(ap, server)
 kerberos5_send(ap)
        Authenticator *ap;
 {
-       char **realms;
-       char *name;
-       char *p1, *p2;
        krb5_checksum ksum;
        krb5_octet sum[CRC32_CKSUM_LENGTH];
-       krb5_principal server;
        krb5_error_code r;
        krb5_ccache ccache;
        krb5_creds creds;               /* telnet gets session key from here */
@@ -311,9 +307,6 @@ kerberos5_is(ap, data, cnt)
        int cnt;
 {
        int r;
-       struct hostent *hp;
-       char *p1, *p2;
-       static char *realm = NULL;
        krb5_principal server;
        krb5_ap_rep_enc_part reply;
        krb5_data outbuf;
@@ -619,13 +612,11 @@ kerberos5_printsub(data, cnt, buf, buflen)
 kerberos5_forward(ap)
      Authenticator *ap;
 {
-    struct hostent *hp;
     krb5_creds *local_creds;
     krb5_error_code r;
     krb5_data forw_creds;
     extern krb5_cksumtype krb5_kdc_req_sumtype;
     krb5_ccache ccache;
-    int i;
 
     if (!(local_creds = (krb5_creds *) 
          calloc(1, sizeof(*local_creds)))) {
index 9565900a391e4d6bb6c08de441abb707572f70d0..7ac49b83f3433f6572f9d636d05bf0deddad316d 100644 (file)
@@ -36,6 +36,7 @@ static char sccsid[] = "@(#)misc.c    8.1 (Berkeley) 6/4/93";
 #endif /* not lint */
 
 #include "misc.h"
+#include <stdio.h>
 
 char *RemoteHostName;
 char *LocalHostName;