Ignore:
File:
1 edited

Legend:

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

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