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/drv/generic/remote_audio_mixer.c

    rd066259 r08e103d4  
    234234        unsigned items = 0;
    235235        const errno_t ret = mixer_iface->get_info(fun, &name, &items);
    236         const size_t name_size = name ? str_size(name) + 1 : 0;
     236        const size_t name_size = name ? str_bytes(name) + 1 : 0;
    237237        async_answer_2(icall, ret, name_size, items);
    238238
     
    269269        unsigned values = 0;
    270270        const errno_t ret = mixer_iface->get_item_info(fun, item, &name, &values);
    271         const size_t name_size = name ? str_size(name) + 1 : 0;
     271        const size_t name_size = name ? str_bytes(name) + 1 : 0;
    272272        async_answer_2(icall, ret, name_size, values);
    273273
Note: See TracChangeset for help on using the changeset viewer.