summaryrefslogtreecommitdiff
path: root/src/tool_setopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_setopt.h')
-rw-r--r--src/tool_setopt.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tool_setopt.h b/src/tool_setopt.h
index 2266d1c9c..690b2c6f3 100644
--- a/src/tool_setopt.h
+++ b/src/tool_setopt.h
@@ -30,13 +30,15 @@
*/
#define SETOPT_CHECK(v,opt) do { \
- result = tool_real_error((v), opt); \
- if(result) \
- goto show_error; \
+ if(!tool_setopt_skip(opt)) { \
+ result = (v); \
+ if(result) \
+ goto show_error; \
+ } \
} WHILE_FALSE
/* allow removed features to simulate success: */
-CURLcode tool_real_error(CURLcode result, CURLoption tag);
+bool tool_setopt_skip(CURLoption tag);
#ifndef CURL_DISABLE_LIBCURL_OPTION