Changeset 08e103d4 in mainline for uspace/srv/fs/mfs/mfs_dentry.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/srv/fs/mfs/mfs_dentry.c

    rd066259 r08e103d4  
    164164        errno_t r;
    165165
    166         const size_t name_len = str_size(d_name);
     166        const size_t name_len = str_bytes(d_name);
    167167
    168168        if (name_len > sbi->max_name_len)
     
    176176                        return r;
    177177
    178                 const size_t d_name_len = str_size(d_info.d_name);
     178                const size_t d_name_len = str_bytes(d_info.d_name);
    179179
    180180                if (name_len == d_name_len &&
     
    207207        bool empty_dentry_found = false;
    208208
    209         const size_t name_len = str_size(d_name);
     209        const size_t name_len = str_bytes(d_name);
    210210
    211211        if (name_len > sbi->max_name_len)
Note: See TracChangeset for help on using the changeset viewer.