diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-11-13 17:05:49 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-11-13 17:05:49 +0100 |
| commit | 8698a58a60c7b8c75d8c741567c7a7c13fec1636 (patch) | |
| tree | e5af1c32db7db964491d0ab2faed2b6d6ae476c5 /src | |
| parent | a8151de2cb8be87fffeed44172174cf72660f77b (diff) | |
| download | box64-8698a58a60c7b8c75d8c741567c7a7c13fec1636.tar.gz box64-8698a58a60c7b8c75d8c741567c7a7c13fec1636.zip | |
Cosmetic change on my_dl_iterate_phdr callback
Diffstat (limited to 'src')
| -rwxr-xr-x | src/elfs/elfloader.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c index d7f4a530..88b9298d 100755 --- a/src/elfs/elfloader.c +++ b/src/elfs/elfloader.c @@ -1452,14 +1452,14 @@ GO(4) // dl_iterate_phdr ... #define GO(A) \ -static uintptr_t my_dl_iterate_phdr_fct_##A = 0; \ -static int my_dl_iterate_phdr_##A(struct dl_phdr_info* a, size_t b, void* c)\ -{ \ - if(!a->dlpi_name) \ - return 0; \ - if(!a->dlpi_name[0]) /*don't send informations about box64 itself*/ \ - return 0; \ - return RunFunction(my_context, my_dl_iterate_phdr_fct_##A, 3, a, b, c); \ +static uintptr_t my_dl_iterate_phdr_fct_##A = 0; \ +static int my_dl_iterate_phdr_##A(struct dl_phdr_info* a, size_t b, void* c) \ +{ \ + if(!a->dlpi_name) \ + return 0; \ + if(!a->dlpi_name[0]) /*don't send informations about box64 itself*/ \ + return 0; \ + return (int)RunFunction(my_context, my_dl_iterate_phdr_fct_##A, 3, a, b, c); \ } SUPER() #undef GO |