fat: match type info expected by fat library for f_write

The fat library uses its own typedef for integer parms and expects a
UINT to be either 16 or 32-bits in length.  We potentially get into
trouble when we build with newlib if we use an uint32_t.  Lets just use
unsigned int which should cover all cases for us.

Change-Id: I3dbbf4871ab65dd12488d41cb06a06387c128339
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2017-01-27 14:39:17 -06:00 committed by Anas Nashif
commit 869a9fc050

View file

@ -170,7 +170,7 @@ int fs_truncate(fs_file_t *zfp, off_t length)
* using additional code and memory for doing any * using additional code and memory for doing any
* optimization. * optimization.
*/ */
uint32_t bw; unsigned int bw;
uint8_t c = 0; uint8_t c = 0;
for (int i = cur_length; i < length; i++) { for (int i = cur_length; i < length; i++) {