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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Thomas Weißschuh <[email protected]>
1 parent fbd4f52 commit 90e1f9f

File tree

1 file changed

+1
-1
lines changed
  • tools/include/nolibc

1 file changed

+1
-1
lines changed

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)