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 22:54:03 +0200
commit801cd7542cc3e83f22615b2d8d1466f9c1e26f4c (patch)
tree472415c1d96a144446c237309493495eb73a1051
parent525e3582dc8141c86c445ca21dbf09331d502df1 (diff)
downloadcontrib-801cd7542cc3e83f22615b2d8d1466f9c1e26f4c.tar.gz
contrib-801cd7542cc3e83f22615b2d8d1466f9c1e26f4c.tar.xz
contrib-801cd7542cc3e83f22615b2d8d1466f9c1e26f4c.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)