tool_parsecfg: fix -Wcast-qual warning

Don't convert string literal to char * before assigning it to
const char *.
This commit is contained in:
Marcel Raad 2017-05-07 20:27:12 +02:00
parent ea1b864786
commit f67aa4d31c
No known key found for this signature in database
GPG Key ID: B4668817AE6D6CD4
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
if(res != PARAM_OK && res != PARAM_NEXT_OPERATION) {
/* the help request isn't really an error */
if(!strcmp(filename, "-")) {
filename = (char *)"<stdin>";
filename = "<stdin>";
}
if(res != PARAM_HELP_REQUESTED &&
res != PARAM_MANUAL_REQUESTED &&