From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by sourceware.org (Postfix) with ESMTPS id 20B35385841E for ; Sat, 18 Feb 2023 20:37:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 20B35385841E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-x22d.google.com with SMTP id z10so1348376ljc.1 for ; Sat, 18 Feb 2023 12:37:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zzKFMDhwlQY0ot1PZjl4B1IWgo/TsIFdvWREdCaiktM=; b=i8196nUGLKk7LZ7VAdseIAFefeW3G1cmU3arXf8UpmHrSQbMC93Gqe6CRe4k64LKWI 1t7b/a77OGiY96nn+RcQuJ56n3g9cNTpWu4s+UAdO9zokTT3uCFhE8J0ik74ClGNR2Y3 0cuJrlvTVJyjuEMwPb7fQaTtX0LnOWT+JMmzyL83T8qPB1+DzCOy6Thd/fzRks4PYhgz 9lSk4khKPod+49TRRi+qKLW6haKf0xs3u8CcpXMpkXwbllNuW1ytJzFPgzW/5xXfMA9n KwKi21dPvLm+7lzz8W6ix9+nOtSnggsve0fTLkBaokYU5Z0aiIytLFKbFtkBtcE1dXKY ENqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zzKFMDhwlQY0ot1PZjl4B1IWgo/TsIFdvWREdCaiktM=; b=cfm1PgBnRETFVhbSqHaw42mYWGfmOJAzLr4kIg0kcmbpcLFv5Lh9d2GDPd3Oz3X/0k 7WxBfMmfXb3Au2XUVGHnvL10tMBZoJ+52xyrWZJvovvoYVWkdfept5ihfSUPphfwuchV ylLfaM7iNkrnqqNfNhcQtZ62mqEyzRqLWyKEiRYeSATSdlSa8nNl2w3yGcdxkW0D7zps XQ2ne4bGsi8zHLpn4CZvjbtMMOu7Ooqi4aySiyobFqjGNs5zcFnz/j1zmDSldLb8Gi/A YKrAS9ALqMVcMfN18cNl1lYx0SG7sCLfBmS3Hnww5EWL84P+j1kr+uw0Jjgz1/lRreao Y1nw== X-Gm-Message-State: AO0yUKWdpnShA2ZlrtVj45mXpovsNZjvDxKGlh+GEOoQGyX1iP3uXSX+ JGA1A2IoVqyqH6E8306QT0Y= X-Google-Smtp-Source: AK7set/PK5eZcEEZ0+S8WtO1sHd9XrO9ItfSETytUy/IQOn/3wKY5mAQPRyA+Ukq2BYAtjO3SA4JBw== X-Received: by 2002:a2e:7005:0:b0:295:5305:855f with SMTP id l5-20020a2e7005000000b002955305855fmr1177009ljc.53.1676752656600; Sat, 18 Feb 2023 12:37:36 -0800 (PST) Received: from surface-pro-6.. ([2a00:1370:818c:4a57:e4a7:ca9:e8d7:4ead]) by smtp.gmail.com with ESMTPSA id u15-20020a05651c130f00b002934febffe4sm1004049lja.128.2023.02.18.12.37.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Feb 2023 12:37:36 -0800 (PST) From: Sergey Bugaev To: bug-hurd@gnu.org, libc-alpha@sourceware.org Cc: =?UTF-8?q?Fl=C3=A1vio=20Cruz?= , Sergey Bugaev Subject: [RFC PATCH 3/9] hurd: Fix xattr function return type Date: Sat, 18 Feb 2023 23:37:11 +0300 Message-Id: <20230218203717.373211-4-bugaevc@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230218203717.373211-1-bugaevc@gmail.com> References: <20230218203717.373211-1-bugaevc@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: They all return int, not size_t. Signed-off-by: Sergey Bugaev --- 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 #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 1d761e2d..cb6a1f8f 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 56c138dc..4e1e2de2 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 128d0e01..fedc5370 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 be3b172b..ba6047cd 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) { -- 2.39.2