Changeset 616e73c in mainline for uspace/srv/fs/fat


Ignore:
Timestamp:
2011-06-27T18:51:15Z (15 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
efa8ed93
Parents:
c4bbca8
Message:

Minor fixes

Location:
uspace/srv/fs/fat
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_fat.c

    rc4bbca8 r616e73c  
    346346                byte2 = ((uint8_t*) b->data)[(offset % BPS(bs))+1];
    347347
    348 #ifdef __BE__   
    349         *value = byte2 | (byte1 << 8);
    350 #else
    351         *value = byte1 | (byte2 << 8);
    352 #endif
    353 
    354         *value = uint16_t_le2host(*value);
     348        *value = uint16_le2host(byte1 | (byte2 << 8));
    355349        if (IS_ODD(clst))
    356350                *value = (*value) >> 4;
  • uspace/srv/fs/fat/fat_ops.c

    rc4bbca8 r616e73c  
    108108        node->dirty = false;
    109109        node->lastc_cached_valid = false;
    110         node->lastc_cached_value = FAT32_CLST_LAST1;
     110        node->lastc_cached_value = 0;
    111111        node->currc_cached_valid = false;
    112112        node->currc_cached_bn = 0;
    113         node->currc_cached_value = FAT32_CLST_LAST1;
     113        node->currc_cached_value = 0;
    114114}
    115115
Note: See TracChangeset for help on using the changeset viewer.