From: Mark Eichin Date: Sun, 14 Aug 1994 04:23:53 +0000 (+0000) Subject: punt unused vars X-Git-Tag: krb5-1.0-beta4.3~191 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=23d9ebf77e34d8a9e07415b1693d77ada0f8ba82;p=krb5.git punt unused vars 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 --- diff --git a/src/appl/telnet/libtelnet/auth.c b/src/appl/telnet/libtelnet/auth.c index 142f8ae9e..74411e527 100644 --- a/src/appl/telnet/libtelnet/auth.c +++ b/src/appl/telnet/libtelnet/auth.c @@ -521,7 +521,6 @@ auth_name(data, cnt) unsigned char *data; int cnt; { - Authenticator *ap; unsigned char savename[256]; if (cnt < 1) { diff --git a/src/appl/telnet/libtelnet/forward.c b/src/appl/telnet/libtelnet/forward.c index 8ae34edba..288eb1645 100644 --- a/src/appl/telnet/libtelnet/forward.c +++ b/src/appl/telnet/libtelnet/forward.c @@ -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]; diff --git a/src/appl/telnet/libtelnet/genget.c b/src/appl/telnet/libtelnet/genget.c index a43579f82..29c751988 100644 --- a/src/appl/telnet/libtelnet/genget.c +++ b/src/appl/telnet/libtelnet/genget.c @@ -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; diff --git a/src/appl/telnet/libtelnet/kerberos5.c b/src/appl/telnet/libtelnet/kerberos5.c index 88bb2fceb..4028c3c64 100644 --- a/src/appl/telnet/libtelnet/kerberos5.c +++ b/src/appl/telnet/libtelnet/kerberos5.c @@ -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)))) { diff --git a/src/appl/telnet/libtelnet/misc.c b/src/appl/telnet/libtelnet/misc.c index 9565900a3..7ac49b83f 100644 --- a/src/appl/telnet/libtelnet/misc.c +++ b/src/appl/telnet/libtelnet/misc.c @@ -36,6 +36,7 @@ static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/4/93"; #endif /* not lint */ #include "misc.h" +#include char *RemoteHostName; char *LocalHostName;