commit e0cb9221febf35fca0e8de5623ac7a92fc71b6b8
parent 07008a6f08edf14b6334cbedb0b314611334f402
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Thu, 27 Jan 2022 16:27:53 +0300
test_quiesce: minor code unification
Diffstat:
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/testcurl/test_quiesce.c b/src/testcurl/test_quiesce.c
@@ -331,11 +331,10 @@ setupCURL (void *cbc)
(CURLE_OK != curl_easy_setopt (c, CURLOPT_ERRORBUFFER,
libcurl_errbuf)) ||
(CURLE_OK != curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L)) ||
- ((oneone) ?
- (CURLE_OK != curl_easy_setopt (c, CURLOPT_HTTP_VERSION,
- CURL_HTTP_VERSION_1_1)) :
- (CURLE_OK != curl_easy_setopt (c, CURLOPT_HTTP_VERSION,
- CURL_HTTP_VERSION_1_0))))
+ (CURLE_OK != curl_easy_setopt (c, CURLOPT_HTTP_VERSION,
+ (oneone) ?
+ CURL_HTTP_VERSION_1_1 :
+ CURL_HTTP_VERSION_1_0)))
libcurlErrorExitDesc ("curl_easy_setopt() failed");
return c;
}