aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2000-03-16 15:08:49 +0000
committerEzra Peisach <epeisach@mit.edu>2000-03-16 15:08:49 +0000
commit38037332d7af42124646c268874e0833bd8ec30e (patch)
tree9f004465ba563a96f23b0d6f1b3f4a246db9f1ce /src
parent02d266872ee1fafc2aa0a4f0a6b6a330b56adea0 (diff)
downloadkrb5-38037332d7af42124646c268874e0833bd8ec30e.zip
krb5-38037332d7af42124646c268874e0833bd8ec30e.tar.gz
krb5-38037332d7af42124646c268874e0833bd8ec30e.tar.bz2
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')
-rw-r--r--src/clients/kdestroy/ChangeLog5
-rw-r--r--src/clients/kdestroy/kdestroy.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/src/clients/kdestroy/ChangeLog b/src/clients/kdestroy/ChangeLog
index fd6e321..457bdc0 100644
--- a/src/clients/kdestroy/ChangeLog
+++ b/src/clients/kdestroy/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-16 Ezra Peisach <epeisach@mit.edu>
+
+ * kdestroy.c: Do not define variables if v4 compatilibilty is not
+ defined.
+
2000-03-07 Danilo Almeida <dalmeida@mit.edu>
* kdestroy.M: Make up-to-date.
diff --git a/src/clients/kdestroy/kdestroy.c b/src/clients/kdestroy/kdestroy.c
index c831f90..d322555 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);