Place parenthesis surrounding macro parameters so that the use of sread and swrite is more intuitive.

This commit is contained in:
Yang Tse
2006-07-12 06:52:40 +00:00
parent 86f4cead16
commit 8272874704
2 changed files with 5 additions and 5 deletions

View File

@@ -454,7 +454,7 @@ static int get_request(int sock, struct httprequest *req)
/*** end of httprequest init ***/
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) {
logmsg("recv() returned error: %d", errno);