fixed yaffs compiler warnings and formatting