Changeset 5d95f02 in mainline for uspace/srv/fs/fat/fat.h


Ignore:
Timestamp:
2011-08-26T23:04:07Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4bf6895
Parents:
0dbe5ac
Message:

Cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat.h

    r0dbe5ac r5d95f02  
    4747#endif
    4848
    49 #define min(a, b)               ((a) < (b) ? (a) : (b))
     49#define min(a, b)       ((a) < (b) ? (a) : (b))
    5050
    5151/*
     
    5656#define RSCNT(bs)       uint16_t_le2host((bs)->rscnt)
    5757#define FATCNT(bs)      (bs)->fatcnt
    58 #define SF(bs)          (uint16_t_le2host((bs)->sec_per_fat) !=0 ? \
     58
     59#define SF(bs)          (uint16_t_le2host((bs)->sec_per_fat) ? \
    5960    uint16_t_le2host((bs)->sec_per_fat) : \
    6061    uint32_t_le2host(bs->fat32.sectors_per_fat))
     62
    6163#define RDE(bs)         uint16_t_le2host((bs)->root_ent_max)
    62 #define TS(bs)          (uint16_t_le2host((bs)->totsec16) != 0 ? \
    63                         uint16_t_le2host((bs)->totsec16) : \
    64                         uint32_t_le2host(bs->totsec32))
    65 
    66 #define BS_BLOCK                0
    67 #define BS_SIZE                 512
     64
     65#define TS(bs)          (uint16_t_le2host((bs)->totsec16) ? \
     66    uint16_t_le2host((bs)->totsec16) : \
     67    uint32_t_le2host(bs->totsec32))
     68
     69#define BS_BLOCK        0
     70#define BS_SIZE         512
    6871
    6972typedef struct fat_bs {
Note: See TracChangeset for help on using the changeset viewer.