mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
hurd: Fix strictness of <mach/thread_state.h>
Fixes: db25bc52026f ("hurd: Add prototype for and thus fix _hurdsig_abort_rpcs call")
This commit is contained in:
parent
9736920963
commit
81dcf8b3d1
1 changed files with 3 additions and 3 deletions
|
@ -59,7 +59,7 @@
|
||||||
#include <string.h> /* size_t, memcpy */
|
#include <string.h> /* size_t, memcpy */
|
||||||
#include <mach/mach_interface.h> /* __thread_get_state */
|
#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,
|
machine_get_state (thread_t thread, struct machine_thread_all_state *state,
|
||||||
int flavor, void *stateptr, void *scpptr, size_t size)
|
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
|
/* No one asked about this flavor of state before; fetch the state
|
||||||
directly from the kernel into the sigcontext. */
|
directly from the kernel into the sigcontext. */
|
||||||
mach_msg_type_number_t got = (size / sizeof (int));
|
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)));
|
&& got == (size / sizeof (int)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
static __inline int
|
||||||
machine_get_basic_state (thread_t thread,
|
machine_get_basic_state (thread_t thread,
|
||||||
struct machine_thread_all_state *state)
|
struct machine_thread_all_state *state)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue