gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 106/254: tool_parsecfg: fix -Wcast-qual warning


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 106/254: tool_parsecfg: fix -Wcast-qual warning
Date: Sat, 17 Jun 2017 16:52:18 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.

commit f67aa4d31c41eb91b0339cc66da5a199e70e7b4b
Author: Marcel Raad <address@hidden>
AuthorDate: Sun May 7 20:27:12 2017 +0200

    tool_parsecfg: fix -Wcast-qual warning
    
    Don't convert string literal to char * before assigning it to
    const char *.
---
 src/tool_parsecfg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 &&

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]