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

    rd066259 r08e103d4  
    133133
    134134        /* Allocate and fill driver's name. */
    135         name_size = str_size(name) + 1;
     135        name_size = str_bytes(name) + 1;
    136136        drv->name = malloc(name_size);
    137137        if (drv->name == NULL)
     
    654654        /* Send the device name to the driver. */
    655655        errno_t rc = async_data_write_start(exch, dev->pfun->name,
    656             str_size(dev->pfun->name) + 1);
     656            str_bytes(dev->pfun->name) + 1);
    657657
    658658        async_exchange_end(exch);
Note: See TracChangeset for help on using the changeset viewer.