lib: fcntl: Use long, for x86_64 data.

* lib/linux/fcntl.c (fcntl): Use long for data.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2022-10-30 17:49:55 +01:00
parent ed2d8d19f6
commit f8227e5bd7
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}