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:
parent
97d375eead
commit
869a9fc050
1 changed files with 1 additions and 1 deletions
|
@ -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++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue