Changeset 46577995 in mainline for uspace/lib/http/src/request.c


Ignore:
Timestamp:
2018-01-04T20:50:52Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
e211ea04
Parents:
facacc71
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:52)
Message:

Use errno_t in all uspace and kernel code.

Change type of every variable, parameter and return value that holds an
<errno.h> constant to either errno_t (the usual case), or sys_errno_t
(some places in kernel). This is for the purpose of self-documentation,
as well as for type-checking with a bit of type definition hackery.

After this commit, HelenOS is free of code that mixes error codes with non-error
values on the assumption that error codes are negative.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/http/src/request.c

    rfacacc71 r46577995  
    9090}
    9191
    92 int http_request_format(http_request_t *req, char **out_buf,
     92errno_t http_request_format(http_request_t *req, char **out_buf,
    9393    size_t *out_buf_size)
    9494{
     
    141141}
    142142
    143 int http_send_request(http_t *http, http_request_t *req)
     143errno_t http_send_request(http_t *http, http_request_t *req)
    144144{
    145145        char *buf = NULL;
    146146        size_t buf_size = 0;
    147147       
    148         int rc = http_request_format(req, &buf, &buf_size);
     148        errno_t rc = http_request_format(req, &buf, &buf_size);
    149149        if (rc != EOK)
    150150                return rc;
Note: See TracChangeset for help on using the changeset viewer.