X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=yaffs_endian.c;h=8c291ad3c8f10d55cbcc476773ef1ce2c9feddf7;hb=5bc32d099123b2e0e5f27f7421caa5413d3211f0;hp=0bc67fef41f8b5a906ccf7a681fa58a2f27911da;hpb=21b2dedaa32ab309f6d1daec966528b7586bd207;p=yaffs2.git diff --git a/yaffs_endian.c b/yaffs_endian.c index 0bc67fe..8c291ad 100644 --- a/yaffs_endian.c +++ b/yaffs_endian.c @@ -37,7 +37,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);