diff options
author | Cary Coutant <ccoutant@google.com> | 2009-02-20 18:53:12 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2009-02-20 18:53:12 +0000 |
commit | 4714925452878a75d8239f765e82ea08997bf478 (patch) | |
tree | 053ac3cc7ee9c40cb9803917e4d3dec1cf00214b /bfd/vmsutil.c | |
parent | 5aca5a820ad1f68a0f17f419ea74fe8df22c049a (diff) | |
download | gdb-4714925452878a75d8239f765e82ea08997bf478.zip gdb-4714925452878a75d8239f765e82ea08997bf478.tar.gz gdb-4714925452878a75d8239f765e82ea08997bf478.tar.bz2 |
* vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
in struct stat.
Diffstat (limited to 'bfd/vmsutil.c')
-rw-r--r-- | bfd/vmsutil.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bfd/vmsutil.c b/bfd/vmsutil.c index 83c4609..ff4383a 100644 --- a/bfd/vmsutil.c +++ b/bfd/vmsutil.c @@ -237,16 +237,13 @@ vms_file_stats_name (const char *filename, return 0; #else struct stat buff; - struct tm *ts; if ((stat (filename, &buff)) != 0) return 1; if (cdt) { - ts = localtime (&buff.st_mtime); - *cdt = (long long) ((buff.st_mtim.tv_sec * VMS_GRANULARITY_FACTOR) - + (buff.st_mtim.tv_nsec / 100)) + *cdt = (long long) (buff.st_mtime * VMS_GRANULARITY_FACTOR) + VMS_EPOCH_OFFSET; } |