bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH hurd] nfsd: fix -Werror=incompatible-pointer-types issues for


From: Samuel Thibault
Subject: Re: [PATCH hurd] nfsd: fix -Werror=incompatible-pointer-types issues for x86_64
Date: Tue, 23 Jul 2024 00:01:07 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Applied, thanks!

Flavio Cruz, le dim. 21 juil. 2024 17:20:55 -0400, a ecrit:
> ---
>  nfsd/cache.c | 2 +-
>  nfsd/ops.c   | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/nfsd/cache.c b/nfsd/cache.c
> index cd5524af..864739c0 100644
> --- a/nfsd/cache.c
> +++ b/nfsd/cache.c
> @@ -387,7 +387,7 @@ create_cached_handle (int fs, struct cache_handle *credc, 
> file_t userport)
>    struct cache_handle *c;
>    int hash;
>    char *bp = fhandle.array + sizeof (int);
> -  size_t handlelen = NFS2_FHSIZE - sizeof (int);
> +  mach_msg_type_number_t handlelen = NFS2_FHSIZE - sizeof (int);
>    mach_port_t newport, ref;
>  
>    /* Authenticate USERPORT so that we can call file_getfh on it.  */
> diff --git a/nfsd/ops.c b/nfsd/ops.c
> index 463a9c87..64e94b93 100644
> --- a/nfsd/ops.c
> +++ b/nfsd/ops.c
> @@ -292,7 +292,7 @@ op_write (struct cache_handle *c,
>    off_t offset;
>    size_t count;
>    error_t err;
> -  mach_msg_type_number_t amt;
> +  vm_size_t amt;
>    char *bp;
>    struct stat st;
>  
> @@ -583,7 +583,7 @@ op_readdir (struct cache_handle *c,
>    error_t err;
>    char *buf;
>    struct dirent *dp;
> -  size_t bufsize;
> +  mach_msg_type_number_t bufsize;
>    int nentries;
>    int i;
>    int *replystart;
> -- 
> 2.45.2
> 
> 

-- 
Samuel
<r> make
<r> oops
<m> make clean



reply via email to

[Prev in Thread] Current Thread [Next in Thread]