[967] in Kerberos-V5-bugs
Casting in admin/edit/dumpv4.c
daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Thu Nov 17 12:07:24 1994
From: epeisach@MIT.EDU
Date: Thu, 17 Nov 1994 12:07:13 -0500
To: krb5-bugs@MIT.EDU
gmtime expects a pointer to a time_t, not a long. On most systems these
are the same, on others....
===================================================================
RCS file: /mit/krb5/.cvsroot/src/admin/edit/dumpv4.c,v
retrieving revision 5.1
diff -c -r5.1 dumpv4.c
*** 5.1 1994/11/16 06:16:38
--- dumpv4.c 1994/11/17 16:59:47
***************
*** 71,77 ****
{
struct tm *tm;
struct tm *gmtime();
! tm = gmtime((long *)&timeval);
fprintf(file, " %04d%02d%02d%02d%02d",
tm->tm_year < 1900 ? tm->tm_year + 1900: tm->tm_year,
tm->tm_mon + 1,
--- 71,77 ----
{
struct tm *tm;
struct tm *gmtime();
! 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,