diff options
author | charles <charles> | 2010-01-11 21:43:18 +0000 |
---|---|---|
committer | charles <charles> | 2010-01-11 21:43:18 +0000 |
commit | fbf2605a5dad8cf93170499d4227064996cce12f (patch) | |
tree | 9d7b52af959f38d785af73119795e2a09fb4dfb4 /yaffs_packedtags2.c | |
parent | 7f0f2c68474e11183cfbaebfd7c21ba48228f05e (diff) |
Change parameters to packing/unpacking to fix mkyaffs2image compilation issue
Diffstat (limited to 'yaffs_packedtags2.c')
-rw-r--r-- | yaffs_packedtags2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yaffs_packedtags2.c b/yaffs_packedtags2.c index e33e8a3..c6f7dcf 100644 --- a/yaffs_packedtags2.c +++ b/yaffs_packedtags2.c @@ -97,11 +97,11 @@ void yaffs_PackTags2TagsPart(yaffs_PackedTags2TagsPart *ptt, } -void yaffs_PackTags2(yaffs_Device *dev, yaffs_PackedTags2 *pt, const yaffs_ExtendedTags *t) +void yaffs_PackTags2(yaffs_PackedTags2 *pt, const yaffs_ExtendedTags *t, int tagsECC) { yaffs_PackTags2TagsPart(&pt->t, t); - if(!dev->noTagsECC) + if(tagsECC) yaffs_ECCCalculateOther((unsigned char *)&pt->t, sizeof(yaffs_PackedTags2TagsPart), &pt->ecc); @@ -156,13 +156,13 @@ void yaffs_UnpackTags2TagsPart(yaffs_ExtendedTags *t, } -void yaffs_UnpackTags2(yaffs_Device *dev, yaffs_ExtendedTags *t, yaffs_PackedTags2 *pt) +void yaffs_UnpackTags2(yaffs_ExtendedTags *t, yaffs_PackedTags2 *pt, int tagsECC) { yaffs_ECCResult eccResult = YAFFS_ECC_RESULT_NO_ERROR; if (pt->t.sequenceNumber != 0xFFFFFFFF && - !dev->noTagsECC){ + tagsECC){ /* Chunk is in use and we need to do ECC */ yaffs_ECCOther ecc; |