From 8ed7589027fc70952ef4a0b2e0b26042a55191f6 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 21 Jun 2001 21:36:01 +0000 Subject: [PATCH] * kadm_supp.c (prin_vals): Pass time_t * to localtime instead of long *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13465 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/v4server/ChangeLog | 5 +++++ src/kadmin/v4server/kadm_supp.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/kadmin/v4server/ChangeLog b/src/kadmin/v4server/ChangeLog index c1008a2da..5735b8f99 100644 --- a/src/kadmin/v4server/ChangeLog +++ b/src/kadmin/v4server/ChangeLog @@ -1,3 +1,8 @@ +2001-06-21 Ezra Peisach + + * kadm_supp.c (prin_vals): Pass time_t * to localtime instead of + long *. + 2001-06-18 Ezra Peisach * kadm_funcs.c: Cast argument to isalnum()/isdigit() to int. diff --git a/src/kadmin/v4server/kadm_supp.c b/src/kadmin/v4server/kadm_supp.c index 55100894d..d3144223e 100644 --- a/src/kadmin/v4server/kadm_supp.c +++ b/src/kadmin/v4server/kadm_supp.c @@ -38,9 +38,10 @@ prin_vals: void prin_vals(vals) Kadm_vals *vals; { + time_t t = vals->exp_date; printf("Info in Database for %s.%s:\n", vals->name, vals->instance); printf(" Max Life: %d Exp Date: %s\n",vals->max_life, - asctime(localtime((long *)&vals->exp_date))); + asctime(localtime(&t))); printf(" Attribs: %.2x key: %ld %ld\n",vals->attributes, vals->key_low, vals->key_high); } -- 2.26.2