Changeset 18b6a88 in mainline for uspace/srv/fs/fat/fat_fat.c


Ignore:
Timestamp:
2018-04-15T09:35:04Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1f44ca
Parents:
8ebe212
Message:

More ccheck fixes, sometimes with manual intervention.

File:
1 edited

Legend:

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

    r8ebe212 r18b6a88  
    249249        for (o = nodep->size; o < pos && o < boundary;
    250250            o = ALIGN_DOWN(o + BPS(bs), BPS(bs))) {
    251                 int flags = (o % BPS(bs) == 0) ?
     251                int flags = (o % BPS(bs) == 0) ?
    252252                    BLOCK_FLAGS_NOREAD : BLOCK_FLAGS_NONE;
    253253                rc = fat_block_get(&b, bs, nodep, o / BPS(bs), flags);
     
    324324                        * first byte of next sector
    325325                        */
    326                         byte2 = ((uint8_t*) b1->data)[0];
     326                        byte2 = ((uint8_t *) b1->data)[0];
    327327
    328328                        rc = block_put(b1);
     
    469469                return rc;
    470470
    471         byte1 = ((uint8_t*) b->data)[offset % BPS(bs)];
     471        byte1 = ((uint8_t *) b->data)[offset % BPS(bs)];
    472472        bool border = false;
    473473        /* This cluster access spans a sector boundary. */
     
    495495                }
    496496        } else
    497                 byte2 = ((uint8_t*) b->data)[(offset % BPS(bs)) + 1];
     497                byte2 = ((uint8_t *) b->data)[(offset % BPS(bs)) + 1];
    498498
    499499        if (IS_ODD(clst)) {
Note: See TracChangeset for help on using the changeset viewer.