From 79f8c56eb28567fb1aeb3da0ff9eddcef6c7f12c Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 8 Dec 1994 23:43:25 +0000 Subject: [PATCH] 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 --- src/admin/edit/ChangeLog | 6 ++++++ src/admin/edit/dumpv4.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + * 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, -- 2.26.2