Cosmetic correction (doesn't affect compiled code) - use letohNN instead of htoleNN in update_fat_entry()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7586 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
da6c0a0e46
commit
207c9500aa
1 changed files with 4 additions and 4 deletions
|
@ -819,11 +819,11 @@ static int update_fat_entry(IF_MV2(struct bpb* fat_bpb,)
|
|||
}
|
||||
|
||||
if ( val ) {
|
||||
if (htole16(sec[offset]) == 0x0000 && fat_bpb->fsinfo.freecount > 0)
|
||||
if (letoh16(sec[offset]) == 0x0000 && fat_bpb->fsinfo.freecount > 0)
|
||||
fat_bpb->fsinfo.freecount--;
|
||||
}
|
||||
else {
|
||||
if (htole16(sec[offset]))
|
||||
if (letoh16(sec[offset]))
|
||||
fat_bpb->fsinfo.freecount++;
|
||||
}
|
||||
|
||||
|
@ -854,12 +854,12 @@ static int update_fat_entry(IF_MV2(struct bpb* fat_bpb,)
|
|||
}
|
||||
|
||||
if ( val ) {
|
||||
if (!(htole32(sec[offset]) & 0x0fffffff) &&
|
||||
if (!(letoh32(sec[offset]) & 0x0fffffff) &&
|
||||
fat_bpb->fsinfo.freecount > 0)
|
||||
fat_bpb->fsinfo.freecount--;
|
||||
}
|
||||
else {
|
||||
if (htole32(sec[offset]) & 0x0fffffff)
|
||||
if (letoh32(sec[offset]) & 0x0fffffff)
|
||||
fat_bpb->fsinfo.freecount++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue