1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-12 12:35:04 -05:00

FD_SET can be big macro, use braces

This commit is contained in:
Daniel Stenberg 2005-02-09 13:47:35 +00:00
parent 6a2e21ec8c
commit 16ae0c6466

View File

@ -700,12 +700,14 @@ CURLcode Curl_ftp_fdset(struct connectdata *conn,
struct FTP *ftp = conn->proto.ftp;
curl_socket_t sockfd = conn->sock[FIRSTSOCKET];
if(ftp->sendleft)
if(ftp->sendleft) {
/* write mode */
FD_SET(sockfd, write_fd_set);
else
}
else {
/* read mode */
FD_SET(sockfd, read_fd_set);
}
if((int)sockfd > *max_fdp)
*max_fdp = (int)sockfd;