mirror of
https://github.com/curl/curl.git
synced 2025-09-20 11:02:42 +03:00
Pay attention when typecasting an operation
This commit is contained in:
parent
624e657210
commit
88a1a10e6f
|
@ -454,7 +454,7 @@ static int get_request(int sock, struct httprequest *req)
|
||||||
/*** end of httprequest init ***/
|
/*** end of httprequest init ***/
|
||||||
|
|
||||||
while (req->offset < REQBUFSIZ) {
|
while (req->offset < REQBUFSIZ) {
|
||||||
ssize_t 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) {
|
||||||
if (got < 0) {
|
if (got < 0) {
|
||||||
logmsg("recv() returned error: %d", errno);
|
logmsg("recv() returned error: %d", errno);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user