diff options
| author | Dave Chapman <dave@dchapman.com> | 2005-10-06 21:23:59 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2005-10-06 21:23:59 +0000 |
| commit | 207c9500aa4be5ccec215db0c46796acfa416457 (patch) | |
| tree | ea52989ef5fdf285b581d1c6aedccd948e53b5a1 | |
| parent | da6c0a0e46e1e610c1d74d20ec816d0c95b4ab98 (diff) | |
| download | rockbox-207c9500aa4be5ccec215db0c46796acfa416457.zip rockbox-207c9500aa4be5ccec215db0c46796acfa416457.tar.gz rockbox-207c9500aa4be5ccec215db0c46796acfa416457.tar.bz2 rockbox-207c9500aa4be5ccec215db0c46796acfa416457.tar.xz | |
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
| -rw-r--r-- | firmware/drivers/fat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index 5d430dd..758e48c 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c @@ -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++; } |