summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2017-09-03 12:13:44 -0400
committerJay Satiro <raysatiro@yahoo.com>2017-09-03 12:13:44 -0400
commit437475901dddacdac2db7449b1a51ee078b1e48f (patch)
treed6d23dd62bced04d315975c7194ba35a161c2e4c /src
parentefd93014260e8a7e36e12c1e9c5e4296dd5c5a9e (diff)
downloadcurl-437475901dddacdac2db7449b1a51ee078b1e48f.tar.gz
tool_formparse: fix some trivial warnings
Diffstat (limited to 'src')
-rw-r--r--src/tool_formparse.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tool_formparse.c b/src/tool_formparse.c
index fc5162eed..de83d6e05 100644
--- a/src/tool_formparse.c
+++ b/src/tool_formparse.c
@@ -352,8 +352,6 @@ static int get_param_part(struct OperationConfig *config, char **str,
* Else use curl_mime_filedata(). */
static CURLcode file_or_stdin(curl_mimepart *part, const char *file)
{
- CURLcode ret = CURLE_OK;
-
if(strcmp(file, "-"))
return curl_mime_filedata(part, file);
@@ -671,7 +669,7 @@ int formparse(struct OperationConfig *config,
}
#endif
- if(curl_mime_data(part, data, -1)) {
+ if(curl_mime_data(part, data, CURL_ZERO_TERMINATED)) {
warnf(config->global, "curl_mime_data failed!\n");
Curl_safefree(contents);
return 26;
@@ -697,7 +695,7 @@ int formparse(struct OperationConfig *config,
}
/* Set part name. */
- if(name && curl_mime_name(part, name, -1)) {
+ if(name && curl_mime_name(part, name, CURL_ZERO_TERMINATED)) {
warnf(config->global, "curl_mime_name failed!\n");
Curl_safefree(contents);
return 29;