aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-12-19 10:34:36 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-12-19 10:34:36 +0000
commiteb6d922f6275f05c639df544619aa9791cb3b077 (patch)
tree417612cbfb227da8cc452bfefa8a9fa1ff92f6cd
parenta7b52f8d29a49e3b93e63020416f51363365a612 (diff)
downloadbusybox-w32-eb6d922f6275f05c639df544619aa9791cb3b077.tar.gz
busybox-w32-eb6d922f6275f05c639df544619aa9791cb3b077.tar.bz2
busybox-w32-eb6d922f6275f05c639df544619aa9791cb3b077.zip
vodz noticed we need to cast things back to an unsigned long
or the syscall will not get the proper arguments. git-svn-id: svn://busybox.net/trunk/busybox@8120 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--util-linux/fdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 31a7d8076..2088e6c67 100644
--- 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,
870 fdisk_loff_t result; 870 fdisk_loff_t result;
871 int retval; 871 int retval;
872 872
873 retval = syscall(__NR__llseek, f_d, ((unsigned long long) offset) >> 32, 873 retval = syscall(__NR__llseek, f_d, (unsigned long)(((unsigned long long) offset) >> 32),
874 ((unsigned long long) offset) & 0xffffffff, 874 (unsigned long)(((unsigned long long) offset) & 0xffffffff),
875 &result, origin); 875 &result, origin);
876 return (retval == -1 ? (fdisk_loff_t) retval : result); 876 return (retval == -1 ? (fdisk_loff_t) retval : result);
877} 877}