From: Theodore Tso Date: Thu, 8 Dec 1994 23:43:25 +0000 (+0000) Subject: gmtime expects a pointer to a time_t, not a long. On most systems X-Git-Tag: krb5-1.0-beta5~926 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=79f8c56eb28567fb1aeb3da0ff9eddcef6c7f12c;p=krb5.git 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 --- 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,