yaffs: Clean up bitfield types
authorCharles Manning <cdhmanning@gmail.com>
Sat, 29 Mar 2014 21:24:55 +0000 (10:24 +1300)
committerCharles Manning <cdhmanning@gmail.com>
Sat, 29 Mar 2014 21:24:55 +0000 (10:24 +1300)
commit53892fe9e3770882fd8f53f1a8a392d875175b4b
tree05fcd4e55a0fb58f1e47c484a9f94b1a5843b6d0
parent5521e3e34aa8ba4e9579b6d5ca2dd5e0a0946088
yaffs: Clean up bitfield types

It happens that the C spec says compilers can choose whether to treat
int bitfields as signed or unsigned.

In some cases, int was being used and signed was expected. The IAR
ARM compiler in particular treats int bitfields as unsigned.

Clean up these plus a few other bitfield usages to make the size and
type explicit.

Thanks to ChungKang Hu for identifying this issue.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/yaffsfs.c
direct/yportenv.h
yaffs_guts.h
yaffs_packedtags1.h