aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2010-05-12 22:54:03 +0200
committerErwan Velu <erwanaliasr1@gmail.com>2010-05-12 23:23:01 +0200
commitfc45153157a84da0a16510235e908f5230387627 (patch)
tree64704d3538a20417d86192027bb82b3523de28bb
parente4b5d2b10c3997595dda83669c3638d2edcafa60 (diff)
downloadcontrib-fc45153157a84da0a16510235e908f5230387627.tar.gz
contrib-fc45153157a84da0a16510235e908f5230387627.tar.xz
contrib-fc45153157a84da0a16510235e908f5230387627.zip
com32: Fixing cast in argv to avoid warning
const char * confuse the *argv++ assignation Casting to char * removes this warning
-rw-r--r--com32/lib/sys/argv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/sys/argv.c b/com32/lib/sys/argv.c
index 3ff869b7..db287c2b 100644
--- a/com32/lib/sys/argv.c
+++ b/com32/lib/sys/argv.c
@@ -78,7 +78,7 @@ int __parse_argv(char ***argv, const char *str)
/* Now create argv */
arg = (char **)ALIGN_UP_FOR(q, char *);
*argv = arg;
- *arg++ = __com32.cs_name ? __com32.cs_name : dummy_argv0; /* argv[0] */
+ *arg++ = __com32.cs_name ? (char *)__com32.cs_name : dummy_argv0; /* argv[0] */
q--; /* Point q to final null */
if (mem < q)