aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-03-06 18:39:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2010-03-06 18:39:45 +0000
commita0c3edcc379a4618be29f002c74d4ec8951f12f8 (patch)
treeff8991b65804a3dd018bc88824e4c2b08013f6a1 /lib
parenta24a67bd1ee194f186410eba0bcd7c1720ce730e (diff)
indent fix by Ben Greear, I removed some braces for single-line conditional
expressions
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index ced43d44c..7122e0d18 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -981,9 +981,9 @@ CURLcode Curl_readwrite(struct connectdata *conn,
/* only use the proper socket if the *_HOLD bit is not set simultaneously as
then we are in rate limiting state in that transfer direction */
- if((k->keepon & KEEP_RECVBITS) == KEEP_RECV) {
+ if((k->keepon & KEEP_RECVBITS) == KEEP_RECV)
fd_read = conn->sockfd;
- } else
+ else
fd_read = CURL_SOCKET_BAD;
if((k->keepon & KEEP_SENDBITS) == KEEP_SEND)
@@ -991,10 +991,9 @@ CURLcode Curl_readwrite(struct connectdata *conn,
else
fd_write = CURL_SOCKET_BAD;
- if(!select_res) { /* Call for select()/poll() only, if read/write/error
- status is not known. */
- select_res = Curl_socket_ready(fd_read, fd_write, 0);
- }
+ if(!select_res) /* Call for select()/poll() only, if read/write/error
+ status is not known. */
+ select_res = Curl_socket_ready(fd_read, fd_write, 0);
if(select_res == CURL_CSELECT_ERR) {
failf(data, "select/poll returned error");