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


Ignore:
Timestamp:
2018-04-15T09:35:04Z (6 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_idx.c

    r8ebe212 r18b6a88  
    119119static inline size_t pos_key_hash(void *key)
    120120{
    121         pos_key_t *pos = (pos_key_t*)key;
     121        pos_key_t *pos = (pos_key_t *)key;
    122122
    123123        size_t hash = 0;
     
    141141static bool pos_key_equal(void *key, const ht_link_t *item)
    142142{
    143         pos_key_t *pos = (pos_key_t*)key;
     143        pos_key_t *pos = (pos_key_t *)key;
    144144        fat_idx_t *fidx = hash_table_get_inst(item, fat_idx_t, uph_link);
    145145
    146         return pos->service_id == fidx->service_id
    147                 && pos->pdi == fidx->pdi
    148                 && pos->pfc == fidx->pfc;
     146        return pos->service_id == fidx->service_id &&
     147            pos->pdi == fidx->pdi &&
     148            pos->pfc == fidx->pfc;
    149149}
    150150
     
    170170static size_t idx_key_hash(void *key_arg)
    171171{
    172         idx_key_t *key = (idx_key_t*)key_arg;
     172        idx_key_t *key = (idx_key_t *)key_arg;
    173173        return hash_combine(key->service_id, key->index);
    174174}
     
    183183{
    184184        fat_idx_t *fidx = hash_table_get_inst(item, fat_idx_t, uih_link);
    185         idx_key_t *key = (idx_key_t*)key_arg;
     185        idx_key_t *key = (idx_key_t *)key_arg;
    186186
    187187        return key->index == fidx->index && key->service_id == fidx->service_id;
     
    508508static bool rm_pos_service_id(ht_link_t *item, void *arg)
    509509{
    510         service_id_t service_id = *(service_id_t*)arg;
     510        service_id_t service_id = *(service_id_t *)arg;
    511511        fat_idx_t *fidx = hash_table_get_inst(item, fat_idx_t, uph_link);
    512512
     
    520520static bool rm_idx_service_id(ht_link_t *item, void *arg)
    521521{
    522         service_id_t service_id = *(service_id_t*)arg;
     522        service_id_t service_id = *(service_id_t *)arg;
    523523        fat_idx_t *fidx = hash_table_get_inst(item, fat_idx_t, uih_link);
    524524
Note: See TracChangeset for help on using the changeset viewer.