vodz noticed we need to cast things back to an unsigned long
or the syscall will not get the proper arguments.
This commit is contained in:
parent
850b05fbde
commit
07d2f4052f
@ -870,8 +870,8 @@ static fdisk_loff_t my_llseek (unsigned int f_d, fdisk_loff_t offset,
|
|||||||
fdisk_loff_t result;
|
fdisk_loff_t result;
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
retval = syscall(__NR__llseek, f_d, ((unsigned long long) offset) >> 32,
|
retval = syscall(__NR__llseek, f_d, (unsigned long)(((unsigned long long) offset) >> 32),
|
||||||
((unsigned long long) offset) & 0xffffffff,
|
(unsigned long)(((unsigned long long) offset) & 0xffffffff),
|
||||||
&result, origin);
|
&result, origin);
|
||||||
return (retval == -1 ? (fdisk_loff_t) retval : result);
|
return (retval == -1 ? (fdisk_loff_t) retval : result);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user