From 90e1f9f7440cba79716a9d5b0c9df2ce6a661197 Mon Sep 17 00:00:00 2001 From: Louis Taylor Date: Thu, 6 Mar 2025 18:41:20 +0000 Subject: [PATCH] tools/nolibc: process open() vararg as mode_t MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit openat() uses mode_t for this, so also update open() to be consistent. Signed-off-by: Louis Taylor Link: https://lore.kernel.org/r/20250306184147.208723-3-louis@kragniz.eu Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/sys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h index a8dca5ac65421..5d8adc7785759 100644 --- a/tools/include/nolibc/sys.h +++ b/tools/include/nolibc/sys.h @@ -810,7 +810,7 @@ int open(const char *path, int flags, ...) va_list args; va_start(args, flags); - mode = va_arg(args, int); + mode = va_arg(args, mode_t); va_end(args); } -- 2.47.2