]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: drop redundant parenthesis from two macro expressions
authorViktor Szakats <commit@vsz.me>
Wed, 31 Dec 2025 16:12:16 +0000 (17:12 +0100)
committerViktor Szakats <commit@vsz.me>
Wed, 31 Dec 2025 17:49:53 +0000 (18:49 +0100)
Closes #20136

tests/libtest/first.h

index 3a3af63c16e96b11385ce50c8843ed13ae102eeb..1c8217ed827d0f96748c0d8d2dd622911dc262cc 100644 (file)
@@ -144,7 +144,7 @@ void ws_close(CURL *curl);
 
 #define exe_easy_init(A, Y, Z)                                        \
   do {                                                                \
-    if(((A) = curl_easy_init()) == NULL) {                            \
+    if((A = curl_easy_init()) == NULL) {                              \
       curl_mfprintf(stderr, "%s:%d curl_easy_init() failed\n", Y, Z); \
       result = TEST_ERR_EASY_INIT;                                    \
     }                                                                 \
@@ -167,7 +167,7 @@ void ws_close(CURL *curl);
 
 #define exe_multi_init(A, Y, Z)                                        \
   do {                                                                 \
-    if(((A) = curl_multi_init()) == NULL) {                            \
+    if((A = curl_multi_init()) == NULL) {                              \
       curl_mfprintf(stderr, "%s:%d curl_multi_init() failed\n", Y, Z); \
       result = TEST_ERR_MULTI;                                         \
     }                                                                  \