[BusyBox-cvs] busybox/util-linux fdisk.c,1.14,1.15
Erik Andersen
andersen at busybox.net
Fri Dec 19 10:34:38 UTC 2003
Update of /var/cvs/busybox/util-linux
In directory nail:/tmp/cvs-serv20166/util-linux
Modified Files:
fdisk.c
Log Message:
vodz noticed we need to cast things back to an unsigned long
or the syscall will not get the proper arguments.
Index: fdisk.c
===================================================================
RCS file: /var/cvs/busybox/util-linux/fdisk.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- fdisk.c 12 Dec 2003 19:05:15 -0000 1.14
+++ fdisk.c 19 Dec 2003 10:34:36 -0000 1.15
@@ -870,8 +870,8 @@
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);
}
More information about the busybox-cvs
mailing list