mirror of
https://github.com/curl/curl.git
synced 2026-06-03 20:54:19 +03:00
sread now returns ssize_t
This commit is contained in:
parent
2278e8f1ba
commit
624e657210
1 changed files with 1 additions and 1 deletions
|
|
@ -454,7 +454,7 @@ static int get_request(int sock, struct httprequest *req)
|
|||
/*** end of httprequest init ***/
|
||||
|
||||
while (req->offset < REQBUFSIZ) {
|
||||
int got = sread(sock, reqbuf + req->offset, REQBUFSIZ - req->offset);
|
||||
ssize_t got = sread(sock, reqbuf + req->offset, REQBUFSIZ - req->offset);
|
||||
if (got <= 0) {
|
||||
if (got < 0) {
|
||||
logmsg("recv() returned error: %d", errno);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue