mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
src/system/mtdutils: Fix compiler warnings
Origin commit data
------------------
Commit: db59b7d3f1
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-10-15 (Tue, 15 Oct 2013)
This commit is contained in:
@@ -756,7 +756,7 @@ void CMkfsJFFS2::padblock(void)
|
||||
{
|
||||
while (out_ofs % erase_block_size) {
|
||||
full_write(out_fd, ffbuf, min(sizeof(ffbuf),
|
||||
erase_block_size - (out_ofs % erase_block_size)));
|
||||
(size_t)(erase_block_size - (out_ofs % erase_block_size))));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -868,7 +868,7 @@ void CMkfsJFFS2::create_target_filesystem(struct filesystem_entry *root)
|
||||
}
|
||||
} else {
|
||||
while (out_ofs < pad_fs_size) {
|
||||
full_write(out_fd, ffbuf, min(sizeof(ffbuf), pad_fs_size - out_ofs));
|
||||
full_write(out_fd, ffbuf, min(sizeof(ffbuf), (size_t)(pad_fs_size - out_ofs)));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user