]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Clean up unsed variables when V4 compatibility is not defined
authorEzra Peisach <epeisach@mit.edu>
Thu, 16 Mar 2000 15:08:49 +0000 (15:08 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 16 Mar 2000 15:08:49 +0000 (15:08 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12124 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/kdestroy/ChangeLog
src/clients/kdestroy/kdestroy.c

index fd6e321769ddac633a4539632d49ba197abf9ead..457bdc040d766a86a39eb16e5f2c4b7bf3b4bcf1 100644 (file)
@@ -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.
index c831f90d785abb6fd6c097a40adc2bbaf2a9a16f..d322555cc984f9d63c5b2a65733dc2f0536d7bb2 100644 (file)
@@ -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);