From 82f610faee6a3da86d5c6f2c365e8dbc40165233 Mon Sep 17 00:00:00 2001 From: xctan Date: Mon, 4 Mar 2024 22:38:49 +0800 Subject: [PATCH] [WRAPPER] Fixed a typo in the signature of my___libc_start_main (#941) --- src/emu/x86run_private.c | 2 +- src/wrapped/wrappedlibc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/x86run_private.c b/src/emu/x86run_private.c index a6f739d19..8858b7077 100755 --- a/src/emu/x86run_private.c +++ b/src/emu/x86run_private.c @@ -49,7 +49,7 @@ void EXPORT my___libc_init(x86emu_t* emu, void* raw_args __unused, void (*onexit emu->quit = 1; // finished! } #else -int32_t EXPORT my___libc_start_main(x86emu_t* emu, int *(main) (int, char * *, char * *), int argc, char * * ubp_av, void (*init) (void), void (*fini) (void), void (*rtld_fini) (void), void (* stack_end)) +int32_t EXPORT my___libc_start_main(x86emu_t* emu, int (*main) (int, char * *, char * *), int argc, char * * ubp_av, void (*init) (void), void (*fini) (void), void (*rtld_fini) (void), void (* stack_end)) { (void)argc; (void)ubp_av; (void)fini; (void)rtld_fini; (void)stack_end; // let's cheat and set all args... diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 54a84b144..fa4df0835 100755 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -463,7 +463,7 @@ static void* findon_exitFct(void* fct) #undef SUPER // some my_XXX declare and defines -int32_t my___libc_start_main(x86emu_t* emu, int *(main) (int, char * *, char * *), +int32_t my___libc_start_main(x86emu_t* emu, int (*main) (int, char * *, char * *), int argc, char * * ubp_av, void (*init) (void), void (*fini) (void), void (*rtld_fini) (void), void (* stack_end)); // implemented in x86run_private.c EXPORT void my___libc_init_first(x86emu_t* emu, int argc, char* arg0, char** b)