From: Ezra Peisach Date: Mon, 15 Jul 2002 16:26:12 +0000 (+0000) Subject: * dump.c (dump_ov_princ): Remove variable set but unused X-Git-Tag: krb5-1.3-alpha1~569 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a0ea73af81ab89b51f574e4eb454f86c5a7a67d3;p=krb5.git * dump.c (dump_ov_princ): Remove variable set but unused git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14650 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/dbutil/ChangeLog b/src/kadmin/dbutil/ChangeLog index af9b18496..550d91a44 100644 --- a/src/kadmin/dbutil/ChangeLog +++ b/src/kadmin/dbutil/ChangeLog @@ -1,3 +1,7 @@ +2002-07-15 Ezra Peisach + + * dump.c (dump_ov_princ): Remove variable set but unused. + 2002-04-05 Ken Raeburn * kdb5_stash.c (kdb5_stash): Call krb5_c_valid_enctype instead of diff --git a/src/kadmin/dbutil/dump.c b/src/kadmin/dbutil/dump.c index 2a74c48c7..b3198a8c1 100644 --- a/src/kadmin/dbutil/dump.c +++ b/src/kadmin/dbutil/dump.c @@ -926,7 +926,7 @@ static void print_key_data(FILE *f, krb5_key_data *key_data) static krb5_error_code dump_ov_princ(krb5_pointer ptr, krb5_db_entry *kdb) { char *princstr; - int x, y, foundcrc, ret; + int x, y, foundcrc; struct dump_args *arg; krb5_tl_data tl_data; osa_princ_ent_rec adb; @@ -944,7 +944,7 @@ static krb5_error_code dump_ov_princ(krb5_pointer ptr, krb5_db_entry *kdb) * comment in server_kdb.c to help decide. */ tl_data.tl_data_type = KRB5_TL_KADM_DATA; - if ((ret = krb5_dbe_lookup_tl_data(arg->kcontext, kdb, &tl_data)) + if (krb5_dbe_lookup_tl_data(arg->kcontext, kdb, &tl_data) || (tl_data.tl_data_length == 0)) return 0; @@ -1006,7 +1006,6 @@ dump_db(argc, argv) { FILE *f; struct dump_args arglist; - int error; char *programname; char *ofile; krb5_error_code kret, retval; @@ -1023,7 +1022,6 @@ dump_db(argc, argv) if (strrchr(programname, (int) '/')) programname = strrchr(argv[0], (int) '/') + 1; ofile = (char *) NULL; - error = 0; dump = &r1_3_version; arglist.verbose = 0; new_mkey_file = 0;