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/lib/ieee80211/src/ieee80211_impl.c

    rd066259 r08e103d4  
    193193        uint8_t temp[HASH_SHA1];
    194194
    195         size_t data_size = PRF_CRYPT_DATA_LENGTH + str_size(a) + 2;
     195        size_t data_size = PRF_CRYPT_DATA_LENGTH + str_bytes(a) + 2;
    196196        uint8_t work_arr[data_size];
    197197        memset(work_arr, 0, data_size);
    198198
    199         memcpy(work_arr, a, str_size(a));
    200         memcpy(work_arr + str_size(a) + 1, data, PRF_CRYPT_DATA_LENGTH);
     199        memcpy(work_arr, a, str_bytes(a));
     200        memcpy(work_arr + str_bytes(a) + 1, data, PRF_CRYPT_DATA_LENGTH);
    201201
    202202        for (uint8_t i = 0; i < iters; i++) {
Note: See TracChangeset for help on using the changeset viewer.