summaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-12-26 15:43:25 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-26 23:44:17 +0100
commit8ab78f720ae478d533e30b202baec4b451741579 (patch)
treef476fa9496db2c92f32918acd66194b315b802c0 /lib/transfer.c
parentec424f311aabfd34df1833878503236505e51656 (diff)
downloadcurl-8ab78f720ae478d533e30b202baec4b451741579.tar.gz
misc: fix "warning: empty expression statement has no effect"
Turned several macros into do-while(0) style to allow their use to work find with semicolon. Bug: https://github.com/curl/curl/commit/08e8455dddc5e48e58a12ade3815c01ae3da3b64#commitcomment-45433279 Follow-up to 08e8455dddc5e4 Reported-by: Gisle Vanem Closes #6376
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 96ee77c62..a2a890ecf 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -1232,10 +1232,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
}
k->now = Curl_now();
- if(didwhat) {
- ;
- }
- else {
+ if(!didwhat) {
/* no read no write, this is a timeout? */
if(k->exp100 == EXP100_AWAITING_CONTINUE) {
/* This should allow some time for the header to arrive, but only a