aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2010-05-12 22:54:03 +0200
committerH. Peter Anvin <hpa@linux.intel.com>2010-05-12 14:57:03 -0700
commitd7ea681937f7a70dff8c0b4ffb014425845fb0a3 (patch)
tree64704d3538a20417d86192027bb82b3523de28bb
parentcc122356f56a3cb45a01d31ecadf1f4f1f2e8441 (diff)
downloadsyslinux-d7ea681937f7a70dff8c0b4ffb014425845fb0a3.tar.gz
syslinux-d7ea681937f7a70dff8c0b4ffb014425845fb0a3.tar.xz
syslinux-d7ea681937f7a70dff8c0b4ffb014425845fb0a3.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)