Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 92d9406 in mainline


Ignore:
Timestamp:
2011-12-11T13:13:02Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
1776895
Parents:
7a6690d8
Message:

exfat: cstyle fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat_directory.c

    r7a6690d8 r92d9406  
    268268                if (idx == 2 || idx == 3)
    269269                        continue;
    270                 checksum = ((checksum << 15) | (checksum >> 1)) + (uint16_t)bytes[idx];
     270                checksum = ((checksum << 15) | (checksum >> 1)) +
     271                    (uint16_t)bytes[idx];
    271272        }
    272273        return checksum;
     
    312313        array[1].stream.valid_data_size = host2uint64_t_le(ds->valid_data_size);
    313314        array[1].stream.data_size = host2uint64_t_le(ds->data_size);
    314         array[0].file.checksum = host2uint16_t_le(exfat_directory_set_checksum((uint8_t *)array,
     315        array[0].file.checksum =
     316            host2uint16_t_le(exfat_directory_set_checksum((uint8_t *)array,
    315317            count * sizeof(exfat_dentry_t)));
    316318
     
    354356        uctablep = EXFAT_NODE(fn);
    355357
    356         uctable_chars = ALIGN_DOWN(uctablep->size, sizeof(uint16_t)) / sizeof(uint16_t);
     358        uctable_chars = ALIGN_DOWN(uctablep->size,
     359            sizeof(uint16_t)) / sizeof(uint16_t);
    357360        uctable = (uint16_t *) malloc(uctable_chars * sizeof(uint16_t));
    358361        rc = exfat_read_uctable(di->bs, uctablep, (uint8_t *)uctable);
     
    419422                        return rc;
    420423
    421                 if (i == df.file.count - 2)
    422                         chars = ds.stream.name_size - EXFAT_NAME_PART_LEN*(df.file.count - 2);
     424                if (i == df.file.count - 2) {
     425                        chars = ds.stream.name_size -
     426                            EXFAT_NAME_PART_LEN*(df.file.count - 2);
     427                }
     428
    423429                rc = exfat_directory_get(di, &de);
    424430                if (rc != EOK)
Note: See TracChangeset for help on using the changeset viewer.