Ignore:
File:
1 edited

Legend:

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

    r10de842 r0e7c3d9  
    3434 */
    3535
    36 #include <errno.h>
    3736#include <stdio.h>
    3837#include <stdlib.h>
     
    4241#include <http/http.h>
    4342#include <http/ctype.h>
     43#include <http/errno.h>
    4444
    4545#define HTTP_HEADER_LINE "%s: %s\r\n"
     
    146146                        continue;
    147147               
    148                 size_t nrecv;
    149                 rc = recv_discard(rb, (c == '\r' ? '\n' : '\r'), &nrecv);
    150                 if (rc != EOK)
     148                rc = recv_discard(rb, (c == '\r' ? '\n' : '\r'));
     149                if (rc < 0)
    151150                        return rc;
    152151               
Note: See TracChangeset for help on using the changeset viewer.