Changeset 08e103d4 in mainline for uspace/lib/ext4/src/directory.c


Ignore:
Timestamp:
2019-02-05T18:26:05Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
1d2f85e
Parents:
d066259
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 16:16:55)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 18:26:05)
Message:

Use clearer naming for string length functions

This and the following commit change the names of functions, as well as
their documentation, to use unambiguous terms "bytes" and "code points"
instead of ambiguous terms "size", "length", and "characters".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/src/directory.c

    rd066259 r08e103d4  
    417417        uint32_t total_blocks = inode_size / block_size;
    418418
    419         uint32_t name_len = str_size(name);
     419        uint32_t name_len = str_bytes(name);
    420420
    421421        /* Find block, where is space for new entry and try to add */
     
    485485    ext4_inode_ref_t *parent, const char *name)
    486486{
    487         uint32_t name_len = str_size(name);
     487        uint32_t name_len = str_bytes(name);
    488488
    489489        ext4_superblock_t *sb = parent->fs->superblock;
Note: See TracChangeset for help on using the changeset viewer.