From f8227e5bd7cdf77f9f32ea4ae83ec74fb9a07e9c Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sun, 30 Oct 2022 17:49:55 +0100 Subject: [PATCH] lib: fcntl: Use long, for x86_64 data. * lib/linux/fcntl.c (fcntl): Use long for data. --- lib/linux/fcntl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/linux/fcntl.c b/lib/linux/fcntl.c index 85a167ae..b09d41ee 100644 --- a/lib/linux/fcntl.c +++ b/lib/linux/fcntl.c @@ -27,8 +27,8 @@ fcntl (int filedes, int command, ...) { va_list ap; va_start (ap, command); - int data = va_arg (ap, int); - int r = _sys_call3 (SYS_fcntl, (int) filedes, (int) command, (int) data); + long data = va_arg (ap, long); + int r = _sys_call3 (SYS_fcntl, filedes, command, (long) data); va_end (ap); return r; }