From 2a6ce4b2d8edc2fc858f4ca145cdfa10f6ab22e5 Mon Sep 17 00:00:00 2001 From: batt Date: Wed, 5 Dec 2007 22:37:54 +0000 Subject: [PATCH] Use correct inode address. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1028 38d2e660-2303-0410-9eaa-f027e97ec537 --- fs/battfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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! -- 2.25.1