X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=yaffs_endian.c;h=571a35f7642739041b888f94bf2102451831c8d8;hb=ebc54da9e29be1de79d77c72c0d8eb91833c641b;hp=8c291ad3c8f10d55cbcc476773ef1ce2c9feddf7;hpb=b4d5215f18486403d16f2e776000e43eba052f40;p=yaffs2.git diff --git a/yaffs_endian.c b/yaffs_endian.c index 8c291ad..571a35f 100644 --- a/yaffs_endian.c +++ b/yaffs_endian.c @@ -1,8 +1,7 @@ /* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002-2011 Aleph One Ltd. - * for Toby Churchill Ltd and Brightstar Engineering + * Copyright (C) 2002-2018 Aleph One Ltd. * * Created by Charles Manning * @@ -43,9 +42,9 @@ void yaffs_do_endian_oh(struct yaffs_dev *dev, struct yaffs_obj_hdr *oh) oh->yst_uid = swap_u32(oh->yst_uid); oh->yst_gid = swap_u32(oh->yst_gid); - oh->yst_atime = swap_u32(oh->yst_atime); - oh->yst_mtime = swap_u32(oh->yst_mtime); - oh->yst_ctime = swap_u32(oh->yst_ctime); + oh->yst_atime = swap_ytime_t(oh->yst_atime); + oh->yst_mtime = swap_ytime_t(oh->yst_mtime); + oh->yst_ctime = swap_ytime_t(oh->yst_ctime); oh->file_size_low = swap_u32(oh->file_size_low);