* ktutil.c (ktutil_list): Remove variable set but not used. Also,
authorEzra Peisach <epeisach@mit.edu>
Mon, 15 Jul 2002 16:25:44 +0000 (16:25 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 15 Jul 2002 16:25:44 +0000 (16:25 +0000)
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
src/kadmin/ktutil/ktutil.c

index 8f4bd7a02fc707c17e7db6736c5a8d3a932e7263..06af5b6388a368e640d90ffb026015eb66d0e837 100644 (file)
@@ -1,3 +1,9 @@
+2002-07-15  Ezra Peisach  <epeisach@bu.edu>
+
+       * 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  <raeburn@mit.edu>
 
        * ktutil_funcs.c (ktutil_write_srvtab): When keeping only
        highest-numbered kvno, with some heuristics to deal with
index b6a2419835c52b5fe2199db5b64e98a1f1178b15..e01bbdbef77cfe5008d3491d256ef7e0bb8098db 100644 (file)
@@ -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,