Changeset 08e103d4 in mainline for uspace/srv/vfs/vfs_register.c


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

    rd066259 r08e103d4  
    356356        count = 0;
    357357        list_foreach(fs_list, fs_link, fs_info_t, fs) {
    358                 size += str_size(fs->vfs_info.name) + 1;
     358                size += str_bytes(fs->vfs_info.name) + 1;
    359359                count++;
    360360        }
     
    382382        count = 0;
    383383        list_foreach(fs_list, fs_link, fs_info_t, fs) {
    384                 l = str_size(fs->vfs_info.name) + 1;
     384                l = str_bytes(fs->vfs_info.name) + 1;
    385385                memcpy(fstypes->buf + size, fs->vfs_info.name, l);
    386386                fstypes->fstypes[count] = &fstypes->buf[size];
Note: See TracChangeset for help on using the changeset viewer.