From: batt Date: Wed, 5 Dec 2007 22:37:54 +0000 (+0000) Subject: Use correct inode address. X-Git-Tag: 1.0.0~214 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=2a6ce4b2d8edc2fc858f4ca145cdfa10f6ab22e5;p=bertos.git Use correct inode address. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1028 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/fs/battfs.c b/fs/battfs.c index d4ee7233..e02e14a4 100644 --- a/fs/battfs.c +++ b/fs/battfs.c @@ -142,7 +142,7 @@ bool battfs_init(struct BattFsSuper *disk) rotating_init(&cks); rotating_update(&hdr, sizeof(BattFsPageHeader) - sizeof(rotating_t), &cks); if (cks == hdr.fcs) - filelen_table[page]++; + filelen_table[hdr.inode]++; else { #warning Finish me!