Module: wine Branch: master Commit: 38dfa2f4551626d05d5c23824a8e0277374e63ce URL: https://source.winehq.org/git/wine.git/?a=commit;h=38dfa2f4551626d05d5c23824...
Author: Jinoh Kang jinoh.kang.kr@gmail.com Date: Sat Jan 1 05:34:54 2022 +0900
loader: Fix return type of get_auxiliary().
This is required for fetching pointer-valued vectors (e.g. AT_SYSINFO_EHDR).
Signed-off-by: Jinoh Kang jinoh.kang.kr@gmail.com
---
loader/preloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/loader/preloader.c b/loader/preloader.c index 585be50624f..d88964e9c4b 100644 --- a/loader/preloader.c +++ b/loader/preloader.c @@ -868,7 +868,7 @@ static void set_auxiliary_values( struct wld_auxv *av, const struct wld_auxv *ne * * Get a field of the auxiliary structure */ -static int get_auxiliary( struct wld_auxv *av, int type, int def_val ) +static ElfW(Addr) get_auxiliary( struct wld_auxv *av, int type, ElfW(Addr) def_val ) { for ( ; av->a_type != AT_NULL; av++) if( av->a_type == type ) return av->a_un.a_val;