Skip to content

Commit

Permalink
[WRAPPER] Fixed a typo in the signature of my___libc_start_main (#941)
Browse files Browse the repository at this point in the history
  • Loading branch information
xctan authored Mar 4, 2024
1 parent ec77755 commit 82f610f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/emu/x86run_private.c
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down
2 changes: 1 addition & 1 deletion src/wrapped/wrappedlibc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 82f610f

Please sign in to comment.