Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/cdfs/cdfs_ops.c

    r3e6a98c5 rfeeac0d  
    365365       
    366366        /* Check for duplicate entries */
    367         list_foreach(parent->cs_list, link) {
    368                 cdfs_dentry_t *dentry =
    369                     list_get_instance(link, cdfs_dentry_t, link);
    370                
     367        list_foreach(parent->cs_list, link, cdfs_dentry_t, dentry) {
    371368                if (str_cmp(dentry->name, name) == 0)
    372369                        return EEXIST;
     
    524521        }
    525522       
    526         list_foreach(parent->cs_list, link) {
    527                 cdfs_dentry_t *dentry =
    528                     list_get_instance(link, cdfs_dentry_t, link);
    529                
     523        list_foreach(parent->cs_list, link, cdfs_dentry_t, dentry) {
    530524                if (str_cmp(dentry->name, component) == 0) {
    531525                        *fn = get_cached_node(parent->service_id, dentry->index);
     
    660654         */
    661655        if ((vol_desc->type != VOL_DESC_PRIMARY) ||
    662             (bcmp(vol_desc->standard_ident, CDFS_STANDARD_IDENT, 5) != 0) ||
     656            (memcmp(vol_desc->standard_ident, CDFS_STANDARD_IDENT, 5) != 0) ||
    663657            (vol_desc->version != 1)) {
    664658                block_put(block);
Note: See TracChangeset for help on using the changeset viewer.