diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-16 00:12:33 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-16 00:12:52 +0200 |
commit | 81dcf8b3d136e25ba5a183fbc2343f7179a8afdc (patch) | |
tree | 65aa773b00b6ba90047073a731285d159f3a142c /sysdeps | |
parent | 9736920963258a90c69e60fb8896ce3e70d18d3e (diff) | |
download | glibc-81dcf8b3d136e25ba5a183fbc2343f7179a8afdc.tar glibc-81dcf8b3d136e25ba5a183fbc2343f7179a8afdc.tar.gz glibc-81dcf8b3d136e25ba5a183fbc2343f7179a8afdc.tar.bz2 glibc-81dcf8b3d136e25ba5a183fbc2343f7179a8afdc.zip |
hurd: Fix strictness of <mach/thread_state.h>
Fixes: db25bc52026f ("hurd: Add prototype for and thus fix _hurdsig_abort_rpcs call")
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/mach/thread_state.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/mach/thread_state.h b/sysdeps/mach/thread_state.h index 431aaf82ed..7815c607bd 100644 --- a/sysdeps/mach/thread_state.h +++ b/sysdeps/mach/thread_state.h @@ -59,7 +59,7 @@ #include <string.h> /* size_t, memcpy */ #include <mach/mach_interface.h> /* __thread_get_state */ -static inline int +static __inline int machine_get_state (thread_t thread, struct machine_thread_all_state *state, int flavor, void *stateptr, void *scpptr, size_t size) { @@ -74,12 +74,12 @@ machine_get_state (thread_t thread, struct machine_thread_all_state *state, /* No one asked about this flavor of state before; fetch the state directly from the kernel into the sigcontext. */ mach_msg_type_number_t got = (size / sizeof (int)); - return (! __thread_get_state (thread, flavor, scpptr, &got) + return (! __thread_get_state (thread, flavor, (thread_state_t) scpptr, &got) && got == (size / sizeof (int))); } } -static inline int +static __inline int machine_get_basic_state (thread_t thread, struct machine_thread_all_state *state) { |