semihosting: clean up handling of expanded argv
commit78beee809d49adc0862c89816d72ece57c3913b7
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 15 Mar 2022 11:46:12 +0000 (15 11:46 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 23 Mar 2022 10:38:09 +0000 (23 10:38 +0000)
tree811b17d15737171882008862b0fd5a36f722d743
parentc6afd2bdfd69e9a8d2c0c7c41aac5255e34a60bc
semihosting: clean up handling of expanded argv

Another cleanup patch tripped over the fact we weren't being careful
in our casting. Fix the casts, allow for a non-const and switch from
g_realloc to g_renew.

The whole semihosting argument handling could do with some tests
though.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220315121251.2280317-8-alex.bennee@linaro.org>
semihosting/config.c