public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Samuel Thibault <sthibaul@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] hurd: Fix strictness of <mach/thread_state.h> Date: Tue, 15 Aug 2023 22:13:29 +0000 (GMT) [thread overview] Message-ID: <20230815221329.3F9453858002@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=81dcf8b3d136e25ba5a183fbc2343f7179a8afdc commit 81dcf8b3d136e25ba5a183fbc2343f7179a8afdc Author: Samuel Thibault <samuel.thibault@ens-lyon.org> Date: Wed Aug 16 00:12:33 2023 +0200 hurd: Fix strictness of <mach/thread_state.h> Fixes: db25bc52026f ("hurd: Add prototype for and thus fix _hurdsig_abort_rpcs call") Diff: --- sysdeps/mach/thread_state.h | 6 +++--- 1 file 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) {
reply other threads:[~2023-08-15 22:13 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230815221329.3F9453858002@sourceware.org \ --to=sthibaul@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).