From d159fca76f9b33eb5bbf31c92ea2fce568d76c63 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Sun, 12 Apr 2009 14:09:29 +0000 Subject: [PATCH] Remove dead assignment of variables that are never used git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22194 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/cc_retr.c | 2 +- src/lib/krb5/ccache/ser_cc.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/krb5/ccache/cc_retr.c b/src/lib/krb5/ccache/cc_retr.c index 1e25a048c..8d3398b18 100644 --- a/src/lib/krb5/ccache/cc_retr.c +++ b/src/lib/krb5/ccache/cc_retr.c @@ -227,7 +227,7 @@ krb5_cc_retrieve_cred_seq (krb5_context context, krb5_ccache id, return kret; } - while ((kret = krb5_cc_next_cred(context, id, &cursor, &fetchcreds)) == KRB5_OK) { + while (krb5_cc_next_cred(context, id, &cursor, &fetchcreds) == KRB5_OK) { if (krb5int_cc_creds_match_request(context, whichfields, mcreds, &fetchcreds)) { if (ktypes) { diff --git a/src/lib/krb5/ccache/ser_cc.c b/src/lib/krb5/ccache/ser_cc.c index 33e7f51cc..882dbf714 100644 --- a/src/lib/krb5/ccache/ser_cc.c +++ b/src/lib/krb5/ccache/ser_cc.c @@ -100,7 +100,6 @@ krb5_ccache_externalize(krb5_context kcontext, krb5_pointer arg, krb5_octet **bu krb5_octet *bp; size_t remain; char *ccname; - size_t namelen; const char *fnamep; required = 0; @@ -114,10 +113,7 @@ krb5_ccache_externalize(krb5_context kcontext, krb5_pointer arg, krb5_octet **bu /* Our identifier */ (void) krb5_ser_pack_int32(KV5M_CCACHE, &bp, &remain); - /* Calculate the length of the name */ - namelen = ccache->ops->prefix ? strlen(ccache->ops->prefix)+1 : 0; fnamep = krb5_cc_get_name(kcontext, ccache); - namelen += (strlen(fnamep)+1); if (ccache->ops->prefix) { if (asprintf(&ccname, "%s:%s", ccache->ops->prefix, fnamep) < 0) -- 2.26.2