Changeset 08e103d4 in mainline for uspace/srv/devman/fun.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/devman/fun.c

    rd066259 r08e103d4  
    171171        assert(fun->name != NULL);
    172172
    173         size_t pathsize = (str_size(fun->name) + 1);
     173        size_t pathsize = (str_bytes(fun->name) + 1);
    174174        if (parent != NULL)
    175                 pathsize += str_size(parent->pathname) + 1;
     175                pathsize += str_bytes(parent->pathname) + 1;
    176176
    177177        fun->pathname = (char *) malloc(pathsize);
Note: See TracChangeset for help on using the changeset viewer.