Changeset b7fd2a0 in mainline for uspace/lib/http/src/http.c
- Timestamp:
- 2018-01-13T03:10:29Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/http/src/http.c
r36f0738 rb7fd2a0 47 47 #include <http/receive-buffer.h> 48 48 49 static int http_receive(void *client_data, void *buf, size_t buf_size,49 static errno_t http_receive(void *client_data, void *buf, size_t buf_size, 50 50 size_t *nrecv) 51 51 { … … 69 69 70 70 http->buffer_size = 4096; 71 int rc = recv_buffer_init(&http->recv_buffer, http->buffer_size,71 errno_t rc = recv_buffer_init(&http->recv_buffer, http->buffer_size, 72 72 http_receive, http); 73 73 if (rc != EOK) { … … 79 79 } 80 80 81 int http_connect(http_t *http)81 errno_t http_connect(http_t *http) 82 82 { 83 83 if (http->conn != NULL) 84 84 return EBUSY; 85 85 86 int rc = inet_host_plookup_one(http->host, ip_any, &http->addr, NULL,86 errno_t rc = inet_host_plookup_one(http->host, ip_any, &http->addr, NULL, 87 87 NULL); 88 88 if (rc != EOK) … … 110 110 } 111 111 112 int http_close(http_t *http)112 errno_t http_close(http_t *http) 113 113 { 114 114 if (http->conn == NULL)
Note:
See TracChangeset
for help on using the changeset viewer.