From c802d288cae14decf71c6613e0723fd9ec16706d Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Sun, 15 Oct 2006 13:23:48 +0000 Subject: [PATCH] Remove all unused variable warnings from tree git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18712 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/telnetd/telnetd.c | 2 -- src/lib/gssapi/krb5/k5sealv3.c | 5 ++++- src/lib/krb5/krb/gc_via_tkt.c | 2 ++ src/lib/krb5/krb/preauth2.c | 3 +-- src/lib/krb5/os/hst_realm.c | 3 +-- src/lib/rpc/auth_gss.c | 2 +- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/appl/telnet/telnetd/telnetd.c b/src/appl/telnet/telnetd/telnetd.c index a90fa5c5c..725075d37 100644 --- a/src/appl/telnet/telnetd/telnetd.c +++ b/src/appl/telnet/telnetd/telnetd.c @@ -717,8 +717,6 @@ static int getterminaltype(name) char *name; { - int retval = -1; - settimer(baseline); #if defined(AUTHENTICATION) ttsuck(); diff --git a/src/lib/gssapi/krb5/k5sealv3.c b/src/lib/gssapi/krb5/k5sealv3.c index 9fa1bf755..c5628e2c2 100644 --- a/src/lib/gssapi/krb5/k5sealv3.c +++ b/src/lib/gssapi/krb5/k5sealv3.c @@ -78,7 +78,10 @@ gss_krb5int_make_seal_token_v3 (krb5_context context, int key_usage; unsigned char acceptor_flag; const gss_buffer_desc *message2 = message; - size_t rrc, ec; +#ifdef CFX_EXERCISE + size_t rrc; +#endif + size_t ec; unsigned short tok_id; krb5_checksum sum; krb5_keyblock *key; diff --git a/src/lib/krb5/krb/gc_via_tkt.c b/src/lib/krb5/krb/gc_via_tkt.c index d96f84aaa..02147208f 100644 --- a/src/lib/krb5/krb/gc_via_tkt.c +++ b/src/lib/krb5/krb/gc_via_tkt.c @@ -183,7 +183,9 @@ krb5_get_cred_via_tkt (krb5_context context, krb5_creds *tkt, retval = (krb5_error_code) err_reply->error + ERROR_TABLE_BASE_krb5; if (err_reply->text.length > 0) { +#if 0 const char *m; +#endif switch (err_reply->error) { case KRB_ERR_GENERIC: krb5_set_error_message(context, retval, diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c index deaf8e747..eb1806d1b 100644 --- a/src/lib/krb5/krb/preauth2.c +++ b/src/lib/krb5/krb/preauth2.c @@ -341,8 +341,7 @@ krb5_preauth_prepare_request(krb5_context kcontext, krb5_get_init_creds_opt *options, krb5_kdc_req *request) { - int i, j, k; - krb5_enctype *ktypes; + int i, j; if ((preauth_context == NULL) || (*preauth_context == NULL)) { return; diff --git a/src/lib/krb5/os/hst_realm.c b/src/lib/krb5/os/hst_realm.c index 6646d2da9..e66016441 100644 --- a/src/lib/krb5/os/hst_realm.c +++ b/src/lib/krb5/os/hst_realm.c @@ -432,8 +432,7 @@ krb5_get_fallback_host_realm(krb5_context context, krb5_data *hdata, char ***rea krb5_error_code KRB5_CALLCONV krb5int_clean_hostname(krb5_context context, const char *host, char *local_host, size_t lhsize) { - char **retrealms; - char *realm, *cp, *temp_realm; + char *cp; krb5_error_code retval; int l; diff --git a/src/lib/rpc/auth_gss.c b/src/lib/rpc/auth_gss.c index 7d143ccbe..d11c5e267 100644 --- a/src/lib/rpc/auth_gss.c +++ b/src/lib/rpc/auth_gss.c @@ -397,7 +397,7 @@ authgss_refresh(AUTH *auth, struct rpc_msg *msg) struct rpc_gss_data *gd; struct rpc_gss_init_res gr; gss_buffer_desc *recv_tokenp, send_token; - OM_uint32 maj_stat, min_stat, call_stat, ret_flags, req_flags=0; + OM_uint32 maj_stat, min_stat, call_stat, ret_flags; log_debug("in authgss_refresh()"); -- 2.26.2