diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-06-06 19:58:18 +0100 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2016-06-08 12:06:57 +0300 |
commit | 7dcdaeafe07dd87079c4e073bced4cfc8bf5fdf3 (patch) | |
tree | 13676af7bd6175a7f3f9670e3e757c72ca946e75 /linux-user/qemu.h | |
parent | 8efb2ed5ec192f7e83c5e48753e695d5cbc161b2 (diff) | |
download | qemu-7dcdaeafe07dd87079c4e073bced4cfc8bf5fdf3.zip qemu-7dcdaeafe07dd87079c4e073bced4cfc8bf5fdf3.tar.gz qemu-7dcdaeafe07dd87079c4e073bced4cfc8bf5fdf3.tar.bz2 |
linux-user: Make target_strerror() return 'const char *'
Make target_strerror() return 'const char *' rather than just 'char *';
this will allow us to return constant strings from it for some special
cases.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/qemu.h')
-rw-r--r-- | linux-user/qemu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 6bd7b32..56f29c3 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -195,7 +195,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, void gemu_log(const char *fmt, ...) GCC_FMT_ATTR(1, 2); extern THREAD CPUState *thread_cpu; void cpu_loop(CPUArchState *env); -char *target_strerror(int err); +const char *target_strerror(int err); int get_osversion(void); void init_qemu_uname_release(void); void fork_start(void); |