diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-01-10 12:59:48 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-01-10 12:59:48 -0800 |
commit | c1a51d8ec6bbc7ff9105814d9bce6dae6ea2e005 (patch) | |
tree | 8d55e6b661343c745e73fc89efcb0b8e62f9697a | |
parent | 3958fc32f4e02ff0b0054faf1afbb7c619c3d42b (diff) | |
download | syslinux.git-c1a51d8ec6bbc7ff9105814d9bce6dae6ea2e005.tar.gz syslinux.git-c1a51d8ec6bbc7ff9105814d9bce6dae6ea2e005.tar.xz syslinux.git-c1a51d8ec6bbc7ff9105814d9bce6dae6ea2e005.zip |
com32/lib: add cast in __parse_argv()
ALIGN_UP_FOR() returns the type of the original pointer, but we want
it to be the type that we're actually going to use. Perhaps
ALIGN_UP_FOR() should be changed, but for now, just add the proper
cast.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | com32/lib/sys/argv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/sys/argv.c b/com32/lib/sys/argv.c index b325f26d..8e9aabdb 100644 --- a/com32/lib/sys/argv.c +++ b/com32/lib/sys/argv.c @@ -75,7 +75,7 @@ int __parse_argv(char ***argv, const char *str) } /* Now create argv */ - arg = ALIGN_UP_FOR(q, char *); + arg = (char **)ALIGN_UP_FOR(q, char *); *argv = arg; *arg++ = argv0; /* argv[0] */ |