aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-10-31 22:48:21 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-10-31 22:51:20 +0100
commit49a991346e9c6f334d014f16944744a1dac11c64 (patch)
treef88991c03ae10f47c6208402e77c858c863a012d /src
parentfbf09b77752930b0a9f6758bd97d7064ff835d3d (diff)
curl.h: s/HTTPPOST_/CURL_HTTPOST_
Fixes a name space pollution at the cost of programs using one of these defines will no longer compile. However, the vast majority of libcurl programs that do multipart formposts use curl_formadd() to build this list. Closes #506
Diffstat (limited to 'src')
-rw-r--r--src/tool_setopt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tool_setopt.c b/src/tool_setopt.c
index 2ed68e5eb..e11f527ac 100644
--- a/src/tool_setopt.c
+++ b/src/tool_setopt.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -392,11 +392,11 @@ CURLcode tool_setopt_httppost(CURL *curl, struct GlobalConfig *config,
ret = CURLE_OUT_OF_MEMORY;
goto nomem;
}
- if(pp->flags & HTTPPOST_FILENAME) {
+ if(pp->flags & CURL_HTTPPOST_FILENAME) {
/* file upload as for -F @filename */
DATA1(" CURLFORM_FILE, \"%s\",", escaped);
}
- else if(pp->flags & HTTPPOST_READFILE) {
+ else if(pp->flags & CURL_HTTPPOST_READFILE) {
/* content from file as for -F <filename */
DATA1(" CURLFORM_FILECONTENT, \"%s\",", escaped);
}