diff options
author | Yang Tse <yangsita@gmail.com> | 2013-07-22 20:03:27 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2013-07-22 21:40:44 +0200 |
commit | edeb1ae65f903b216363dd4200ce33418dfd4eb4 (patch) | |
tree | ce4786466ac7fc3821562da6bcaf38729129f8db /src/tool_operate.c | |
parent | 82232bbbaf06b4ea0b86344ccf3ee0b3f7b0c92c (diff) |
curl: fix symbolic names for CURL_NETRC_* enum in --libcurl output
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index 4df802967..292e3eb64 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -933,11 +933,11 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[]) my_setopt(curl, CURLOPT_APPEND, config->ftp_append?1L:0L); if(config->netrc_opt) - my_setopt(curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL); + my_setopt_enum(curl, CURLOPT_NETRC, (long)CURL_NETRC_OPTIONAL); else if(config->netrc || config->netrc_file) - my_setopt(curl, CURLOPT_NETRC, CURL_NETRC_REQUIRED); + my_setopt_enum(curl, CURLOPT_NETRC, (long)CURL_NETRC_REQUIRED); else - my_setopt(curl, CURLOPT_NETRC, CURL_NETRC_IGNORED); + my_setopt_enum(curl, CURLOPT_NETRC, (long)CURL_NETRC_IGNORED); if(config->netrc_file) my_setopt(curl, CURLOPT_NETRC_FILE, config->netrc_file); |