Changeset 08e103d4 in mainline for uspace/srv/fs/mfs/mfs_ops.c


Ignore:
Timestamp:
2019-02-05T18:26:05Z (7 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_ops.c

    rd066259 r08e103d4  
    495495
    496496        struct mfs_sb_info *sbi = mnode->instance->sbi;
    497         const size_t comp_size = str_size(component);
     497        const size_t comp_size = str_bytes(component);
    498498
    499499        unsigned i;
     
    508508                }
    509509
    510                 const size_t dentry_name_size = str_size(d_info.d_name);
     510                const size_t dentry_name_size = str_bytes(d_info.d_name);
    511511
    512512                if (comp_size == dentry_name_size &&
     
    703703        bool destroy_dentry = false;
    704704
    705         if (str_size(name) > sbi->max_name_len)
     705        if (str_bytes(name) > sbi->max_name_len)
    706706                return ENAMETOOLONG;
    707707
     
    873873        found:
    874874                async_data_read_finalize(&call, d_info.d_name,
    875                     str_size(d_info.d_name) + 1);
     875                    str_bytes(d_info.d_name) + 1);
    876876                bytes = ((pos - spos) + 1);
    877877        } else {
Note: See TracChangeset for help on using the changeset viewer.