From 099c39d00f5680cd38b214a4e001e0a04edb7652 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 13 Nov 2007 23:04:15 +0000 Subject: 2007-11-13 Thomas Schwinge * inode.c (read_node): Adapt to ``struct stat'' changes. --- fatfs/inode.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'fatfs/inode.c') 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; -- cgit v1.2.3