Changeset 18b6a88 in mainline for uspace/srv/fs/mfs/mfs_ops.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/mfs/mfs_ops.c

    r8ebe212 r18b6a88  
    103103open_nodes_key_hash(void *key)
    104104{
    105         node_key_t *node_key = (node_key_t*)key;
     105        node_key_t *node_key = (node_key_t *)key;
    106106        return hash_combine(node_key->service_id, node_key->index);
    107107}
     
    117117open_nodes_key_equal(void *key, const ht_link_t *item)
    118118{
    119         node_key_t *node_key = (node_key_t*)key;
     119        node_key_t *node_key = (node_key_t *)key;
    120120        struct mfs_node *mnode = hash_table_get_inst(item, struct mfs_node, link);
    121121
    122         return node_key->service_id == mnode->instance->service_id
    123                 && node_key->index == mnode->ino_i->index;
     122        return node_key->service_id == mnode->instance->service_id &&
     123            node_key->index == mnode->ino_i->index;
    124124}
    125125
     
    361361        if (sbi)
    362362                free(sbi);
    363         if(instance)
     363        if (instance)
    364364                free(instance);
    365365        return rc;
     
    871871                async_answer_0(chandle, rc != EOK ? rc : ENOENT);
    872872                return rc;
    873 found:
     873        found:
    874874                async_data_read_finalize(chandle, d_info.d_name,
    875875                    str_size(d_info.d_name) + 1);
     
    11021102static bool
    11031103check_magic_number(uint16_t magic, bool *native,
    1104                 mfs_version_t *version, bool *longfilenames)
     1104    mfs_version_t *version, bool *longfilenames)
    11051105{
    11061106        bool rc = true;
Note: See TracChangeset for help on using the changeset viewer.