aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-02-09 13:47:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-02-09 13:47:35 +0000
commit16ae0c64662e44e241ae4bd89ddd7ddda13476ae (patch)
treea957a2d25e718b8e782ca9d69b4af63f45f36cd6 /lib/ftp.c
parent6a2e21ec8cbaf7c719902e06953d9dbec629ad4f (diff)
FD_SET can be big macro, use braces
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 45ec88ba4..6dfbdc943 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -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;