From: Ezra Peisach Date: Sun, 12 Apr 2009 14:09:29 +0000 (+0000) Subject: Remove dead assignment of variables that are never used X-Git-Tag: krb5-1.8-alpha1~547 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d159fca76f9b33eb5bbf31c92ea2fce568d76c63;p=krb5.git Remove dead assignment of variables that are never used git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22194 dc483132-0cff-0310-8789-dd5450dbe970 --- 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)