aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-05-07 20:27:12 +0200
committerMarcel Raad <raad@teamviewer.com>2017-05-07 20:27:12 +0200
commitf67aa4d31c41eb91b0339cc66da5a199e70e7b4b (patch)
tree9e10cb4f0b2cdaad541425ea1151fcee3d876c92
parentea1b86478662dce1c3f1ce417180efd5d998c883 (diff)
tool_parsecfg: fix -Wcast-qual warning
Don't convert string literal to char * before assigning it to const char *.
-rw-r--r--src/tool_parsecfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_parsecfg.c b/src/tool_parsecfg.c
index 14efc5c3a..8432e5794 100644
--- a/src/tool_parsecfg.c
+++ b/src/tool_parsecfg.c
@@ -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 &&