[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 3/9] hurd: Fix xattr function return type
From: |
Samuel Thibault |
Subject: |
Re: [RFC PATCH 3/9] hurd: Fix xattr function return type |
Date: |
Mon, 20 Feb 2023 00:34:42 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Applied, thanks!
Sergey Bugaev, le sam. 18 févr. 2023 23:37:11 +0300, a ecrit:
> They all return int, not size_t.
>
> Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
> ---
> sysdeps/mach/hurd/fsetxattr.c | 2 +-
> sysdeps/mach/hurd/lremovexattr.c | 2 +-
> sysdeps/mach/hurd/lsetxattr.c | 2 +-
> sysdeps/mach/hurd/removexattr.c | 2 +-
> sysdeps/mach/hurd/setxattr.c | 2 +-
> 5 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/sysdeps/mach/hurd/fsetxattr.c b/sysdeps/mach/hurd/fsetxattr.c
> index 71ee7599..dcc48fa0 100644
> --- a/sysdeps/mach/hurd/fsetxattr.c
> +++ b/sysdeps/mach/hurd/fsetxattr.c
> @@ -22,7 +22,7 @@
> #include <hurd/xattr.h>
> #include <hurd/fd.h>
>
> -ssize_t
> +int
> fsetxattr (int fd, const char *name, const void *value, size_t size, int
> flags)
> {
> error_t err;
> diff --git a/sysdeps/mach/hurd/lremovexattr.c
> b/sysdeps/mach/hurd/lremovexattr.c
> index 1d761e2d..cb6a1f8f 100644
> --- a/sysdeps/mach/hurd/lremovexattr.c
> +++ b/sysdeps/mach/hurd/lremovexattr.c
> @@ -22,7 +22,7 @@
> #include <hurd/xattr.h>
> #include <fcntl.h>
>
> -ssize_t
> +int
> lremovexattr (const char *path, const char *name)
> {
> error_t err;
> diff --git a/sysdeps/mach/hurd/lsetxattr.c b/sysdeps/mach/hurd/lsetxattr.c
> index 56c138dc..4e1e2de2 100644
> --- a/sysdeps/mach/hurd/lsetxattr.c
> +++ b/sysdeps/mach/hurd/lsetxattr.c
> @@ -22,7 +22,7 @@
> #include <hurd/xattr.h>
> #include <fcntl.h>
>
> -ssize_t
> +int
> lsetxattr (const char *path, const char *name, const void *value, size_t
> size,
> int flags)
> {
> diff --git a/sysdeps/mach/hurd/removexattr.c b/sysdeps/mach/hurd/removexattr.c
> index 128d0e01..fedc5370 100644
> --- a/sysdeps/mach/hurd/removexattr.c
> +++ b/sysdeps/mach/hurd/removexattr.c
> @@ -21,7 +21,7 @@
> #include <hurd.h>
> #include <hurd/xattr.h>
>
> -ssize_t
> +int
> removexattr (const char *path, const char *name)
> {
> error_t err;
> diff --git a/sysdeps/mach/hurd/setxattr.c b/sysdeps/mach/hurd/setxattr.c
> index be3b172b..ba6047cd 100644
> --- a/sysdeps/mach/hurd/setxattr.c
> +++ b/sysdeps/mach/hurd/setxattr.c
> @@ -21,7 +21,7 @@
> #include <hurd.h>
> #include <hurd/xattr.h>
>
> -ssize_t
> +int
> setxattr (const char *path, const char *name, const void *value, size_t size,
> int flags)
> {
> --
> 2.39.2
>
>
--
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.
- [RFC PATCH 0/9] More x86_64-gnu glibc work, Sergey Bugaev, 2023/02/18
- [RFC PATCH 1/9] hurd: Move thread state manipulation into _hurd_tls_new (), Sergey Bugaev, 2023/02/18
- [RFC PATCH 2/9] hurd: Use proper integer types, Sergey Bugaev, 2023/02/18
- [RFC PATCH 3/9] hurd: Fix xattr function return type, Sergey Bugaev, 2023/02/18
- Re: [RFC PATCH 3/9] hurd: Fix xattr function return type,
Samuel Thibault <=
- [RFC PATCH 5/9] hurd: Simplify init-first.c a bit, Sergey Bugaev, 2023/02/18
- [RFC PATCH 4/9] hurd: Make timer_t pointer-sized, Sergey Bugaev, 2023/02/18
- [RFC PATCH 6/9] mach: Use PAGE_SIZE, Sergey Bugaev, 2023/02/18
- [RFC PATCH 7/9] hurd: Generalize init-first.c to support x86_64, Sergey Bugaev, 2023/02/18