* kadm_supp.c (prin_vals): Pass time_t * to localtime instead of
authorEzra Peisach <epeisach@mit.edu>
Thu, 21 Jun 2001 21:36:01 +0000 (21:36 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 21 Jun 2001 21:36:01 +0000 (21:36 +0000)
long *.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13465 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/v4server/ChangeLog
src/kadmin/v4server/kadm_supp.c

index c1008a2da6eea94eab67c6d3f648d962d6f1bcad..5735b8f99602185d03ed6c0e1c31c3614ea82380 100644 (file)
@@ -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.
index 55100894d4f65849176e68fb63ffb6f2236867e5..d3144223e4915b9ea41aa6361cf13a885ff3ad65 100644 (file)
@@ -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);
 }