Changeset 08e103d4 in mainline for uspace/app/websrv/websrv.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/app/websrv/websrv.c

    rd066259 r08e103d4  
    227227static errno_t send_response(tcp_conn_t *conn, const char *msg)
    228228{
    229         size_t response_size = str_size(msg);
     229        size_t response_size = str_bytes(msg);
    230230
    231231        if (verbose)
     
    322322        char *end_uri = str_chr(uri, ' ');
    323323        if (end_uri == NULL) {
    324                 end_uri = reqline + str_size(reqline) - 2;
     324                end_uri = reqline + str_bytes(reqline) - 2;
    325325                assert(*end_uri == '\r');
    326326        }
Note: See TracChangeset for help on using the changeset viewer.