diff options
author | Ezra Peisach <epeisach@mit.edu> | 2001-06-21 21:36:01 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2001-06-21 21:36:01 +0000 |
commit | 8ed7589027fc70952ef4a0b2e0b26042a55191f6 (patch) | |
tree | 43906d0dd4007bde479b415abb14d86c81c89d53 /src/kadmin | |
parent | 1cb1c19900041a18ea0f7ce7a289cc1ed3fff23e (diff) | |
download | krb5-8ed7589027fc70952ef4a0b2e0b26042a55191f6.tar.gz krb5-8ed7589027fc70952ef4a0b2e0b26042a55191f6.tar.xz krb5-8ed7589027fc70952ef4a0b2e0b26042a55191f6.zip |
* 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
Diffstat (limited to 'src/kadmin')
-rw-r--r-- | src/kadmin/v4server/ChangeLog | 5 | ||||
-rw-r--r-- | src/kadmin/v4server/kadm_supp.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/kadmin/v4server/ChangeLog b/src/kadmin/v4server/ChangeLog index c1008a2da6..5735b8f996 100644 --- a/src/kadmin/v4server/ChangeLog +++ b/src/kadmin/v4server/ChangeLog @@ -1,3 +1,8 @@ +2001-06-21 Ezra Peisach <epeisach@mit.edu> + + * kadm_supp.c (prin_vals): Pass time_t * to localtime instead of + long *. + 2001-06-18 Ezra Peisach <epeisach@mit.edu> * 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 55100894d4..d3144223e4 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); } |