From: batt Date: Wed, 24 Sep 2008 16:22:07 +0000 (+0000) Subject: Restore correct MODE type. X-Git-Tag: 2.0.0~93 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=fb50d9a9ef1afffd6ababf97350b98dd5fb066ec;p=bertos.git Restore correct MODE type. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1841 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/fs/battfs_test.c b/bertos/fs/battfs_test.c index cbbadeb9..8ab33a48 100644 --- a/bertos/fs/battfs_test.c +++ b/bertos/fs/battfs_test.c @@ -440,7 +440,7 @@ static void readAcross(BattFsSuper *disk) const unsigned int PAGE_FILL = PAGE_SIZE - BATTFS_HEADER_LEN; inode_t INODE = 0; - inode_t MODE = 0; + unsigned int MODE = 0; uint8_t buf[PAGE_FILL + BATTFS_HEADER_LEN / 2]; disk->erase(disk, 0); @@ -546,7 +546,7 @@ static void writeAcross(BattFsSuper *disk) const unsigned int PAGE_FILL = PAGE_SIZE - BATTFS_HEADER_LEN; inode_t INODE = 0; - inode_t MODE = 0; + unsigned int MODE = 0; uint8_t buf[PAGE_FILL + BATTFS_HEADER_LEN / 2]; disk->erase(disk, 0); @@ -618,7 +618,7 @@ static void createFile(BattFsSuper *disk) BattFs fd1; inode_t INODE = 0; - inode_t MODE = BATTFS_CREATE; + unsigned int MODE = BATTFS_CREATE; ASSERT(battfs_init(disk)); ASSERT(battfs_fileopen(disk, &fd1, INODE, MODE)); @@ -662,7 +662,7 @@ static void multipleWrite(BattFsSuper *disk) BattFs fd1; inode_t INODE = 0; - inode_t MODE = BATTFS_CREATE; + unsigned int MODE = BATTFS_CREATE; uint8_t buf[1000]; ASSERT(battfs_init(disk)); @@ -716,7 +716,7 @@ static void increaseFile(BattFsSuper *disk) BattFs fd1,fd2; inode_t INODE1 = 1, INODE2 = 2; - inode_t MODE = BATTFS_CREATE; + unsigned int MODE = BATTFS_CREATE; uint8_t buf[1000]; ASSERT(battfs_init(disk));