summaryrefslogtreecommitdiff
path: root/sdcard
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-11-10 11:03:38 -0800
committerElliott Hughes <enh@google.com>2014-11-10 11:03:38 -0800
commitf1df854e5857f6dd8fa64b185f8b7cf007463f81 (patch)
tree3ecdf053f9a9bc8ac9d0735dabb18c4b18073642 /sdcard
parent65a83bdf2ea1643449294a23a450e5a8a5b5058c (diff)
bionic's struct stat is now POSIX-compliant.
Right now we still have the kernel names, but they're only there by "virtue" of macro namespace pollution, so I'd like to get rid of them. Bug: 18298106 Change-Id: Ifed0b3a9238c79a99d8a2b62e0f5897c50a725d1
Diffstat (limited to 'sdcard')
-rw-r--r--sdcard/sdcard.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c
index b53b581ec..3fc3577ba 100644
--- a/sdcard/sdcard.c
+++ b/sdcard/sdcard.c
@@ -391,12 +391,12 @@ static void attr_from_stat(struct fuse_attr *attr, const struct stat *s, const s
attr->ino = node->nid;
attr->size = s->st_size;
attr->blocks = s->st_blocks;
- attr->atime = s->st_atime;
- attr->mtime = s->st_mtime;
- attr->ctime = s->st_ctime;
- attr->atimensec = s->st_atime_nsec;
- attr->mtimensec = s->st_mtime_nsec;
- attr->ctimensec = s->st_ctime_nsec;
+ attr->atime = s->st_atim.tv_sec;
+ attr->mtime = s->st_mtim.tv_sec;
+ attr->ctime = s->st_ctim.tv_sec;
+ attr->atimensec = s->st_atim.tv_nsec;
+ attr->mtimensec = s->st_mtim.tv_nsec;
+ attr->ctimensec = s->st_ctim.tv_nsec;
attr->mode = s->st_mode;
attr->nlink = s->st_nlink;