Ignore:
File:
1 edited

Legend:

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

    r10de842 rb7fd2a0  
    9494}
    9595
    96 int http_header_receive_name(receive_buffer_t *rb,
     96errno_t http_header_receive_name(receive_buffer_t *rb,
    9797    receive_buffer_mark_t *name_end)
    9898{
     
    102102                        recv_mark_update(rb, name_end);
    103103               
    104                 int rc = recv_char(rb, &c, true);
     104                errno_t rc = recv_char(rb, &c, true);
    105105                if (rc != EOK)
    106106                        return rc;
     
    113113}
    114114
    115 int http_header_receive_value(receive_buffer_t *rb,
     115errno_t http_header_receive_value(receive_buffer_t *rb,
    116116    receive_buffer_mark_t *value_start, receive_buffer_mark_t *value_end)
    117117{
    118         int rc = EOK;
     118        errno_t rc = EOK;
    119119        char c = 0;
    120120       
     
    167167}
    168168
    169 int http_header_receive(receive_buffer_t *rb, http_header_t *header,
     169errno_t http_header_receive(receive_buffer_t *rb, http_header_t *header,
    170170    size_t size_limit, size_t *out_bytes_used)
    171171{
     
    176176        recv_mark(rb, &mark_end);
    177177       
    178         int rc = http_header_receive_name(rb, &mark_end);
     178        errno_t rc = http_header_receive_name(rb, &mark_end);
    179179        if (rc != EOK)
    180180                goto end;
     
    259259}
    260260
    261 int http_headers_find_single(http_headers_t *headers, const char *name,
     261errno_t http_headers_find_single(http_headers_t *headers, const char *name,
    262262    http_header_t **out_header)
    263263{
     
    282282}
    283283
    284 int http_headers_append(http_headers_t *headers, const char *name,
     284errno_t http_headers_append(http_headers_t *headers, const char *name,
    285285    const char *value)
    286286{
     
    293293}
    294294
    295 int http_headers_set(http_headers_t *headers, const char *name,
     295errno_t http_headers_set(http_headers_t *headers, const char *name,
    296296    const char *value)
    297297{
    298298        http_header_t *header = NULL;
    299         int rc = http_headers_find_single(headers, name, &header);
     299        errno_t rc = http_headers_find_single(headers, name, &header);
    300300        if (rc != EOK && rc != HTTP_EMISSING_HEADER)
    301301                return rc;
     
    313313}
    314314
    315 int http_headers_get(http_headers_t *headers, const char *name, char **value)
     315errno_t http_headers_get(http_headers_t *headers, const char *name, char **value)
    316316{
    317317        http_header_t *header = NULL;
    318         int rc = http_headers_find_single(headers, name, &header);
     318        errno_t rc = http_headers_find_single(headers, name, &header);
    319319        if (rc != EOK)
    320320                return rc;
     
    324324}
    325325
    326 int http_headers_receive(receive_buffer_t *rb, http_headers_t *headers,
     326errno_t http_headers_receive(receive_buffer_t *rb, http_headers_t *headers,
    327327    size_t limit_alloc, unsigned limit_count)
    328328{
    329         int rc = EOK;
     329        errno_t rc = EOK;
    330330        unsigned added = 0;
    331331       
Note: See TracChangeset for help on using the changeset viewer.