From: Sergey Bugaev Date: Sat, 18 Feb 2023 20:37:11 +0000 (+0300) Subject: hurd: Fix xattr function return type X-Git-Tag: glibc-2.38~559 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80c2c1432d5167d408e0f6e5afdc108c8cffcc1f;p=thirdparty%2Fglibc.git hurd: Fix xattr function return type They all return int, not size_t. Signed-off-by: Sergey Bugaev Message-Id: <20230218203717.373211-4-bugaevc@gmail.com> --- diff --git a/sysdeps/mach/hurd/fsetxattr.c b/sysdeps/mach/hurd/fsetxattr.c index 71ee7599b83..dcc48fa0d89 100644 --- a/sysdeps/mach/hurd/fsetxattr.c +++ b/sysdeps/mach/hurd/fsetxattr.c @@ -22,7 +22,7 @@ #include #include -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 1d761e2d3e0..cb6a1f8f541 100644 --- a/sysdeps/mach/hurd/lremovexattr.c +++ b/sysdeps/mach/hurd/lremovexattr.c @@ -22,7 +22,7 @@ #include #include -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 56c138dc9f7..4e1e2de297f 100644 --- a/sysdeps/mach/hurd/lsetxattr.c +++ b/sysdeps/mach/hurd/lsetxattr.c @@ -22,7 +22,7 @@ #include #include -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 128d0e01e8c..fedc537077c 100644 --- a/sysdeps/mach/hurd/removexattr.c +++ b/sysdeps/mach/hurd/removexattr.c @@ -21,7 +21,7 @@ #include #include -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 be3b172b698..ba6047cd28f 100644 --- a/sysdeps/mach/hurd/setxattr.c +++ b/sysdeps/mach/hurd/setxattr.c @@ -21,7 +21,7 @@ #include #include -ssize_t +int setxattr (const char *path, const char *name, const void *value, size_t size, int flags) {