summaryrefslogtreecommitdiffstats
path: root/src/admin
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1994-12-08 23:43:25 +0000
committerTheodore Tso <tytso@mit.edu>1994-12-08 23:43:25 +0000
commit79f8c56eb28567fb1aeb3da0ff9eddcef6c7f12c (patch)
tree892b263478e76d064df86811e6a35bedae5111cc /src/admin
parente1f97111554ead82677d08a0c85ff57afcbb7eb7 (diff)
downloadkrb5-79f8c56eb28567fb1aeb3da0ff9eddcef6c7f12c.tar.gz
krb5-79f8c56eb28567fb1aeb3da0ff9eddcef6c7f12c.tar.xz
krb5-79f8c56eb28567fb1aeb3da0ff9eddcef6c7f12c.zip
gmtime expects a pointer to a time_t, not a long. On most systems
these are the same, on others.... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4727 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/admin')
-rw-r--r--src/admin/edit/ChangeLog6
-rw-r--r--src/admin/edit/dumpv4.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/admin/edit/ChangeLog b/src/admin/edit/ChangeLog
index 0a39b2fe5..c1516e9f3 100644
--- a/src/admin/edit/ChangeLog
+++ b/src/admin/edit/ChangeLog
@@ -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
diff --git a/src/admin/edit/dumpv4.c b/src/admin/edit/dumpv4.c
index 0e1205388..f31c5bce7 100644
--- a/src/admin/edit/dumpv4.c
+++ b/src/admin/edit/dumpv4.c
@@ -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,