From 8404893fa9adaa05c5221b09c79c13807ebdef66 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Sun, 14 Aug 1994 03:50:50 +0000 Subject: [PATCH] lint cleanup comment about misuse of krb5_timestamp git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4126 dc483132-0cff-0310-8789-dd5450dbe970 --- src/admin/edit/dump.c | 2 +- src/admin/edit/kdb5_edit.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/admin/edit/dump.c b/src/admin/edit/dump.c index 75ffc3da2..523bceedb 100644 --- a/src/admin/edit/dump.c +++ b/src/admin/edit/dump.c @@ -200,7 +200,7 @@ void load_db(argc, argv) int ch; int load_error = 0; int lineno = 0; - int stype, slength; + int stype; int tmp1, tmp2; char buf[64]; /* Must be longer than ld_vers */ diff --git a/src/admin/edit/kdb5_edit.c b/src/admin/edit/kdb5_edit.c index 43ba606f6..f389e1fe9 100644 --- a/src/admin/edit/kdb5_edit.c +++ b/src/admin/edit/kdb5_edit.c @@ -620,7 +620,7 @@ void extract_srvtab(argc, argv) return; } -int extract_v4_srvtab(argc, argv) +void extract_v4_srvtab(argc, argv) int argc; char *argv[]; { @@ -794,10 +794,8 @@ void list_db(argc, argv) char *argv[]; { struct list_iterator_struct lis; - char *start; char *argbuf; char *p; - int i; if (!dbactive) { com_err(argv[0], 0, Err_no_database); @@ -841,7 +839,7 @@ void list_db(argc, argv) (void) krb5_db_iterate(list_iterator, argv[0]); } -int delete_entry(argc, argv) +void delete_entry(argc, argv) int argc; char *argv[]; { @@ -911,7 +909,6 @@ enter_rnd_key(argc, argv, change) int nprincs = 1; krb5_db_entry entry; krb5_boolean more; - krb5_kvno vno; if (argc < 2) { com_err(argv[0], 0, "Too few arguments"); @@ -1320,6 +1317,7 @@ void show_principal(argc, argv) printf("Name: %s\n", pr_name); printf("Salt: %d\n", entry.salt_type); printf("Alt salt: %d\n", entry.salt_type); +/* XXX - mod_date is a krb5_timestamp which is krb5_int32, but should be time_t! */ printf("Last modified by %s on %s\n", pr_mod, ctime(&entry.mod_date)); if (!nprincs) { -- 2.26.2