mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 11:35:07 -05:00
examples/rtsp: fix error handling macros
Closes https://github.com/curl/curl/pull/2185
This commit is contained in:
parent
f009bbe1f6
commit
b437557896
@ -63,13 +63,13 @@ static int _getch(void)
|
||||
/* error handling macros */
|
||||
#define my_curl_easy_setopt(A, B, C) \
|
||||
res = curl_easy_setopt((A), (B), (C)); \
|
||||
if(!res) \
|
||||
if(res != CURLE_OK) \
|
||||
fprintf(stderr, "curl_easy_setopt(%s, %s, %s) failed: %d\n", \
|
||||
#A, #B, #C, res);
|
||||
|
||||
#define my_curl_easy_perform(A) \
|
||||
res = curl_easy_perform(A); \
|
||||
if(!res) \
|
||||
if(res != CURLE_OK) \
|
||||
fprintf(stderr, "curl_easy_perform(%s) failed: %d\n", #A, res);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user