mirror of
https://github.com/curl/curl.git
synced 2026-07-25 08:47:23 +03:00
cli_ws_pingpong.c cli_ws_data.c fix result type mask
This commit is contained in:
parent
ef768f45c8
commit
c9c9723506
2 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ static CURLcode test_ws_data_m2_echo(const char *url,
|
|||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||
curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 2L); /* websocket style */
|
||||
result = curl_easy_perform(curl);
|
||||
curl_mfprintf(stderr, "curl_easy_perform() returned %u\n", result);
|
||||
curl_mfprintf(stderr, "curl_easy_perform() returned %d\n", result);
|
||||
if(result != CURLE_OK)
|
||||
goto out;
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ static CURLcode test_cli_ws_pingpong(const char *URL)
|
|||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||
curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 2L); /* websocket style */
|
||||
result = curl_easy_perform(curl);
|
||||
curl_mfprintf(stderr, "curl_easy_perform() returned %u\n", result);
|
||||
curl_mfprintf(stderr, "curl_easy_perform() returned %d\n", result);
|
||||
if(result == CURLE_OK)
|
||||
result = pingpong(curl, payload);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue