X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=yaffs_guts.c;fp=yaffs_guts.c;h=aee80de4e55c6d9a815e01e127dd8a3eee88608f;hb=bdb04f601934f804c982cbd1ae6add208c96732b;hp=35440d28aed074bcbc26e7ae61e18dd16cd4be7c;hpb=dba051c0183a6ce9f1af61f9ec2b0f09419e48da;p=yaffs2.git diff --git a/yaffs_guts.c b/yaffs_guts.c index 35440d2..aee80de 100644 --- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -691,7 +691,7 @@ static void yaffs_load_oh_from_name(struct yaffs_dev *dev, YCHAR *oh_name, char *ascii_oh_name = (char *)oh_name; int n = YAFFS_MAX_NAME_LENGTH - 1; while (n > 0 && *name) { - *ascii_oh_name = *name; + *ascii_oh_name = (char)*name; name++; ascii_oh_name++; n--; @@ -871,7 +871,7 @@ u32 yaffs_get_group_base(struct yaffs_dev *dev, struct yaffs_tnode *tn, * in the tree. 0 means only the level 0 tnode is in the tree. */ -/* FindLevel0Tnode finds the level 0 tnode, if one exists. */ +/* yaffs_find_tnode_0 finds the level 0 tnode, if one exists. */ struct yaffs_tnode *yaffs_find_tnode_0(struct yaffs_dev *dev, struct yaffs_file_var *file_struct, u32 chunk_id) @@ -4823,7 +4823,7 @@ int yaffs_guts_initialise(struct yaffs_dev *dev) if (bits <= dev->tnode_width) dev->chunk_grp_bits = 0; else - dev->chunk_grp_bits = bits - dev->tnode_width; + dev->chunk_grp_bits = (u16)(bits - dev->tnode_width); dev->tnode_size = (dev->tnode_width * YAFFS_NTNODES_LEVEL0) / 8; if (dev->tnode_size < sizeof(struct yaffs_tnode))