From: Ezra Peisach Date: Thu, 21 Jun 2001 21:36:01 +0000 (+0000) Subject: * kadm_supp.c (prin_vals): Pass time_t * to localtime instead of X-Git-Tag: krb5-1.3-alpha1~1321 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8ed7589027fc70952ef4a0b2e0b26042a55191f6;p=krb5.git * 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 --- 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); }