]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Fix xattr function return type
authorSergey Bugaev <bugaevc@gmail.com>
Sat, 18 Feb 2023 20:37:11 +0000 (23:37 +0300)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 19 Feb 2023 23:34:07 +0000 (00:34 +0100)
They all return int, not size_t.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230218203717.373211-4-bugaevc@gmail.com>

sysdeps/mach/hurd/fsetxattr.c
sysdeps/mach/hurd/lremovexattr.c
sysdeps/mach/hurd/lsetxattr.c
sysdeps/mach/hurd/removexattr.c
sysdeps/mach/hurd/setxattr.c

index 71ee7599b83a9224b1a8995919e3c256907a454b..dcc48fa0d8993daedfc5d55f5c42663019171817 100644 (file)
@@ -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;
index 1d761e2d3e024694f3cf3bebe734462abeba320e..cb6a1f8f5412e40d34f49697b6bec1d0e0cf64f8 100644 (file)
@@ -22,7 +22,7 @@
 #include <hurd/xattr.h>
 #include <fcntl.h>
 
-ssize_t
+int
 lremovexattr (const char *path, const char *name)
 {
   error_t err;
index 56c138dc9f7cda429f404c96fa4010b4082013c3..4e1e2de297f3200498ec360959be40e656e458bb 100644 (file)
@@ -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)
 {
index 128d0e01e8c0aeb00eabf224fbf50a482c9c03c0..fedc537077c9264368a624cbe2368e379155ed5e 100644 (file)
@@ -21,7 +21,7 @@
 #include <hurd.h>
 #include <hurd/xattr.h>
 
-ssize_t
+int
 removexattr (const char *path, const char *name)
 {
   error_t err;
index be3b172b698c0b2826190838f6724c7030a70ff5..ba6047cd28ff933e21b62ce45d1d073960874fc5 100644 (file)
@@ -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)
 {