diff options
author | Ezra Peisach <epeisach@mit.edu> | 2000-03-16 15:08:49 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2000-03-16 15:08:49 +0000 |
commit | 38037332d7af42124646c268874e0833bd8ec30e (patch) | |
tree | 9f004465ba563a96f23b0d6f1b3f4a246db9f1ce /src/clients/kdestroy/kdestroy.c | |
parent | 02d266872ee1fafc2aa0a4f0a6b6a330b56adea0 (diff) | |
download | krb5-38037332d7af42124646c268874e0833bd8ec30e.tar.gz krb5-38037332d7af42124646c268874e0833bd8ec30e.tar.xz krb5-38037332d7af42124646c268874e0833bd8ec30e.zip |
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
Diffstat (limited to 'src/clients/kdestroy/kdestroy.c')
-rw-r--r-- | src/clients/kdestroy/kdestroy.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/clients/kdestroy/kdestroy.c b/src/clients/kdestroy/kdestroy.c index c831f90d78..d322555cc9 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); |