From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1792) id 3F9453858002; Tue, 15 Aug 2023 22:13:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F9453858002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692137609; bh=89nc0sPEvOyXya4sEnYh0le/9ky9INy03D2QtHuTRvU=; h=From:To:Subject:Date:From; b=v6nTbuzfHtvOECm2DcFEEc/ENFNlEuE/xpjxKgAMjMtgt7GLAt9Llhy6qbrV6X6O7 KDfLdkvkE7lzJFoPp2b6hgv2k4NTtsOtYpmnP4RP/FWzfIx7+4FNfzc6JP4852LDwe QrUfXhQYPoSM5k0krqdggWm+IElWl+WiuFIJXiAg= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Samuel Thibault To: glibc-cvs@sourceware.org Subject: [glibc] hurd: Fix strictness of X-Act-Checkin: glibc X-Git-Author: Samuel Thibault X-Git-Refname: refs/heads/master X-Git-Oldrev: 9736920963258a90c69e60fb8896ce3e70d18d3e X-Git-Newrev: 81dcf8b3d136e25ba5a183fbc2343f7179a8afdc Message-Id: <20230815221329.3F9453858002@sourceware.org> Date: Tue, 15 Aug 2023 22:13:29 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=81dcf8b3d136e25ba5a183fbc2343f7179a8afdc commit 81dcf8b3d136e25ba5a183fbc2343f7179a8afdc Author: Samuel Thibault Date: Wed Aug 16 00:12:33 2023 +0200 hurd: Fix strictness of 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 /* size_t, memcpy */ #include /* __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) {