projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a2e21e
)
FD_SET can be big macro, use braces
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 9 Feb 2005 13:47:35 +0000
(13:47 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 9 Feb 2005 13:47:35 +0000
(13:47 +0000)
lib/ftp.c
patch
|
blob
|
history
diff --git
a/lib/ftp.c
b/lib/ftp.c
index
45ec88b
..
6dfbdc9
100644
(file)
--- 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;