diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-05-09 19:20:28 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-05-09 19:20:28 +0200 |
commit | 4dc8499494dc16bf336c1055f2ae4b78c709c87d (patch) | |
tree | 31f20511fe46d4eb621557f8d7ecb4de64d066d4 /src/tool_formparse.c | |
parent | 158d7016419429e7741ec35d0d6e256985762347 (diff) | |
download | curl-4dc8499494dc16bf336c1055f2ae4b78c709c87d.tar.gz |
tool: fix remaining -Wcast-qual warnings
Avoid casting away low-level const.
Diffstat (limited to 'src/tool_formparse.c')
-rw-r--r-- | src/tool_formparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_formparse.c b/src/tool_formparse.c index 1bcd4c563..952377c49 100644 --- a/src/tool_formparse.c +++ b/src/tool_formparse.c @@ -154,7 +154,7 @@ int formparse(struct OperationConfig *config, char type_major[128] = ""; char type_minor[128] = ""; char *contp; - const char *type = NULL; + char *type = NULL; char *sep; if((1 == sscanf(input, "%255[^=]=", name)) && @@ -215,7 +215,7 @@ int formparse(struct OperationConfig *config, } /* now point beyond the content-type specifier */ - sep = (char *)type + strlen(type_major)+strlen(type_minor)+1; + sep = type + strlen(type_major)+strlen(type_minor)+1; /* there's a semicolon following - we check if it is a filename specified and if not we simply assume that it is text that |