mirror of
https://github.com/curl/curl.git
synced 2026-07-29 22:58:04 +03:00
tool: fix remaining -Wcast-qual warnings
Avoid casting away low-level const.
This commit is contained in:
parent
158d701641
commit
4dc8499494
3 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue