From 869a9fc050bdb95ca7cae4ae77e214764a31fa1d Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Fri, 27 Jan 2017 14:39:17 -0600 Subject: [PATCH] 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 --- subsys/fs/fat_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/fs/fat_fs.c b/subsys/fs/fat_fs.c index 4a63b3a0b4b..3ae208d43fa 100644 --- a/subsys/fs/fat_fs.c +++ b/subsys/fs/fat_fs.c @@ -170,7 +170,7 @@ int fs_truncate(fs_file_t *zfp, off_t length) * using additional code and memory for doing any * optimization. */ - uint32_t bw; + unsigned int bw; uint8_t c = 0; for (int i = cur_length; i < length; i++) {