Skip to content

Commit 90e1f9f

Browse files
kragnizt-8ch
authored andcommitted
tools/nolibc: process open() vararg as mode_t
openat() uses mode_t for this, so also update open() to be consistent. Signed-off-by: Louis Taylor <louis@kragniz.eu> Link: https://lore.kernel.org/r/20250306184147.208723-3-louis@kragniz.eu Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
1 parent fbd4f52 commit 90e1f9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tools/include/nolibc

tools/include/nolibc/sys.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ int open(const char *path, int flags, ...)
810810
va_list args;
811811

812812
va_start(args, flags);
813-
mode = va_arg(args, int);
813+
mode = va_arg(args, mode_t);
814814
va_end(args);
815815
}
816816

0 commit comments

Comments
 (0)