Re: [PATCH hurd] libfshelp: type check messages using the full mach_msg_type_t so that it works on x86_64.

2023-11-18 Thread Samuel Thibault
Applied, thanks!

Flavio Cruz, le sam. 18 nov. 2023 18:24:11 -0500, a ecrit:
> ---
>  libfshelp/start-translator-long.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libfshelp/start-translator-long.c 
> b/libfshelp/start-translator-long.c
> index 0d6c574..0b16e7d 100644
> --- a/libfshelp/start-translator-long.c
> +++ b/libfshelp/start-translator-long.c
> @@ -110,7 +110,7 @@ service_fsys_startup (fshelp_open_fn_t 
> underlying_open_fn, void *cookie,
>  {
>union
>{
> -uint32_t word;
> +uintptr_t word;
>   mach_msg_type_t type;
>} t, c;
>t.type = *type;
> -- 
> 2.39.2
> 
> 

-- 
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.



[PATCH hurd] libfshelp: type check messages using the full mach_msg_type_t so that it works on x86_64.

2023-11-18 Thread Flavio Cruz
---
 libfshelp/start-translator-long.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libfshelp/start-translator-long.c 
b/libfshelp/start-translator-long.c
index 0d6c574..0b16e7d 100644
--- a/libfshelp/start-translator-long.c
+++ b/libfshelp/start-translator-long.c
@@ -110,7 +110,7 @@ service_fsys_startup (fshelp_open_fn_t underlying_open_fn, 
void *cookie,
 {
   union
   {
-uint32_t word;
+uintptr_t word;
mach_msg_type_t type;
   } t, c;
   t.type = *type;
-- 
2.39.2