From 5b4412754482689504843ad184aa95e0491857a5 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 15 Jul 2002 16:25:44 +0000 Subject: [PATCH] * ktutil.c (ktutil_list): Remove variable set but not used. Also, do not assume that sizeof(time_t) is 32 bits. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14649 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/ktutil/ChangeLog | 6 ++++++ src/kadmin/ktutil/ktutil.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/kadmin/ktutil/ChangeLog b/src/kadmin/ktutil/ChangeLog index 8f4bd7a02..06af5b638 100644 --- a/src/kadmin/ktutil/ChangeLog +++ b/src/kadmin/ktutil/ChangeLog @@ -1,3 +1,9 @@ +2002-07-15 Ezra Peisach + + * ktutil.c (ktutil_list): Remove variable set but not used. Also, + do not assume that sizeof(time_t) is 32 bits. + +2003-03-07 Ken Raeburn * ktutil_funcs.c (ktutil_write_srvtab): When keeping only highest-numbered kvno, with some heuristics to deal with diff --git a/src/kadmin/ktutil/ktutil.c b/src/kadmin/ktutil/ktutil.c index b6a241983..e01bbdbef 100644 --- a/src/kadmin/ktutil/ktutil.c +++ b/src/kadmin/ktutil/ktutil.c @@ -219,7 +219,6 @@ void ktutil_list(argc, argv) { krb5_error_code retval; krb5_kt_list lp; - struct tm *sltime; int show_time = 0, show_keys = 0, show_enctype = 0; int i, j; char *pname; @@ -258,8 +257,10 @@ void ktutil_list(argc, argv) if (show_time) { char fmtbuf[18]; char fill; + time_t tstamp; - sltime = localtime((time_t *)&lp->entry->timestamp); + (void) localtime(&tstamp); + lp->entry->timestamp = tstamp; fill = ' '; if (!krb5_timestamp_to_sfstring((krb5_timestamp)lp->entry-> timestamp, -- 2.26.2