summaryrefslogtreecommitdiff
path: root/fatfs/inode.c
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2007-11-13 23:04:15 +0000
committerThomas Schwinge <tschwinge@gnu.org>2007-11-13 23:04:15 +0000
commit099c39d00f5680cd38b214a4e001e0a04edb7652 (patch)
treebda14455f8209cf69721a025425f33726676c18a /fatfs/inode.c
parenta1eb100d51e6a610e017811e73910919d61d4c50 (diff)
2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
* inode.c (read_node): Adapt to ``struct stat'' changes.
Diffstat (limited to 'fatfs/inode.c')
-rw-r--r--fatfs/inode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fatfs/inode.c b/fatfs/inode.c
index cce8a084..2a427933 100644
--- a/fatfs/inode.c
+++ b/fatfs/inode.c
@@ -385,9 +385,7 @@ read_node (struct node *np, vm_address_t buf)
{
struct timespec ts;
fat_to_epoch (dr->write_date, dr->write_time, &ts);
- st->st_ctime = st->st_mtime = st->st_atime = ts.tv_sec;
- st->st_ctime_usec = st->st_mtime_usec = st->st_atime_usec
- = ts.tv_nsec / 1000;
+ st->st_ctim = st->st_mtim = st->st_atim = ts;
}
st->st_blksize = bytes_per_sector;