projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
850b05f
)
vodz noticed we need to cast things back to an unsigned long
author
Eric Andersen
<andersen@codepoet.org>
Fri, 19 Dec 2003 10:34:36 +0000
(10:34 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Fri, 19 Dec 2003 10:34:36 +0000
(10:34 -0000)
or the syscall will not get the proper arguments.
util-linux/fdisk.c
patch
|
blob
|
history
diff --git
a/util-linux/fdisk.c
b/util-linux/fdisk.c
index 31a7d8076b5889d47d1618b789a5f47fe162365a..2088e6c6717d3ff332f3063256e83dc878e845c9 100644
(file)
--- a/
util-linux/fdisk.c
+++ b/
util-linux/fdisk.c
@@
-870,8
+870,8
@@
static fdisk_loff_t my_llseek (unsigned int f_d, fdisk_loff_t offset,
fdisk_loff_t result;
int retval;
- retval = syscall(__NR__llseek, f_d, (
(unsigned long long) offset) >> 32
,
- (
(unsigned long long) offset) & 0xffffffff
,
+ retval = syscall(__NR__llseek, f_d, (
unsigned long)(((unsigned long long) offset) >> 32)
,
+ (
unsigned long)(((unsigned long long) offset) & 0xffffffff)
,
&result, origin);
return (retval == -1 ? (fdisk_loff_t) retval : result);
}