gmtime expects a pointer to a time_t, not a long. On most systems
authorTheodore Tso <tytso@mit.edu>
Thu, 8 Dec 1994 23:43:25 +0000 (23:43 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 8 Dec 1994 23:43:25 +0000 (23:43 +0000)
these are the same, on others....

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

src/admin/edit/ChangeLog
src/admin/edit/dumpv4.c

index 0a39b2fe5db0075de1a182e544fb460110afb413..c1516e9f38be4627e3061ce40e18a6e841247fbc 100644 (file)
@@ -1,3 +1,9 @@
+Wed Dec  7 00:07:46 1994    <tytso@rsx-11.mit.edu>
+
+       * dumpv4.c (v4_print_time): gmtime expects a pointer to a time_t,
+               not a long. On most systems these are the same, on
+               others.... 
+
 Wed Nov 16 01:03:42 1994  Mark Eichin  (eichin@cygnus.com)
 
        * dumpv4.c: new file. New command dump_v4db which creates a v4
index 0e120538841bd31eb0d331a1165a8b0806dc3387..f31c5bce77098a45b11e4bb516a490b640cafbe8 100644 (file)
@@ -71,7 +71,7 @@ v4_print_time(file, timeval)
 {
     struct tm *tm;
     struct tm *gmtime();
-    tm = gmtime((long *)&timeval);
+    tm = gmtime((time_t *)&timeval);
     fprintf(file, " %04d%02d%02d%02d%02d",
             tm->tm_year < 1900 ? tm->tm_year + 1900: tm->tm_year,
             tm->tm_mon + 1,