diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/admin/edit/ChangeLog | 6 | ||||
| -rw-r--r-- | src/admin/edit/dumpv4.c | 2 |
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, |
