X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_endian.c;h=6103f4ebb0c20ab062a982b19078ae3273f914a3;hp=0bc67fef41f8b5a906ccf7a681fa58a2f27911da;hb=7003e06cea707d4960217490af2c1eb65b79c352;hpb=21b2dedaa32ab309f6d1daec966528b7586bd207 diff --git a/yaffs_endian.c b/yaffs_endian.c index 0bc67fe..6103f4e 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 * @@ -37,7 +36,7 @@ void yaffs_do_endian_oh(struct yaffs_dev *dev, struct yaffs_obj_hdr *oh) return; /* Change every field */ oh->type = swap_u32(oh->type); - oh->parent_obj_id = swap_s32(oh->parent_obj_id); + oh->parent_obj_id = swap_u32(oh->parent_obj_id); oh->yst_mode = swap_u32(oh->yst_mode);