From: Ezra Peisach Date: Thu, 16 Mar 2000 15:08:49 +0000 (+0000) Subject: Clean up unsed variables when V4 compatibility is not defined X-Git-Tag: krb5-1.2-beta1~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=38037332d7af42124646c268874e0833bd8ec30e;p=krb5.git Clean up unsed variables when V4 compatibility is not defined git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12124 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/kdestroy/ChangeLog b/src/clients/kdestroy/ChangeLog index fd6e32176..457bdc040 100644 --- a/src/clients/kdestroy/ChangeLog +++ b/src/clients/kdestroy/ChangeLog @@ -1,3 +1,8 @@ +2000-03-16 Ezra Peisach + + * kdestroy.c: Do not define variables if v4 compatilibilty is not + defined. + 2000-03-07 Danilo Almeida * kdestroy.M: Make up-to-date. diff --git a/src/clients/kdestroy/kdestroy.c b/src/clients/kdestroy/kdestroy.c index c831f90d7..d322555cc 100644 --- a/src/clients/kdestroy/kdestroy.c +++ b/src/clients/kdestroy/kdestroy.c @@ -92,10 +92,12 @@ main(argc, argv) krb5_ccache cache = NULL; char *cache_name = NULL; int code = 0; +#ifdef KRB5_KRB4_COMPAT int v4code = 0; + int v4 = 1; +#endif int errflg = 0; int quiet = 0; - int v4 = 1; int use_k5 = 0; int use_k4 = 0; @@ -173,7 +175,9 @@ main(argc, argv) } if (cache_name) { +#ifdef KRB5_KRB4_COMPAT v4 = 0; /* Don't do v4 if doing v5 and cache name given. */ +#endif code = krb5_cc_resolve (kcontext, cache_name, &cache); if (code != 0) { com_err (progname, code, "while resolving %s", cache_name);