about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-04-24 17:09:55 +0000
committerUlrich Drepper <drepper@redhat.com>2006-04-24 17:09:55 +0000
commit589abe9337cac4420bbca7e2f9255214651f9c4d (patch)
tree7108833d681228938c9920b3be3c7845c3d560fe /sysdeps
parenta346370d582ed9be5e434f955c049e75abc37c28 (diff)
downloadglibc-589abe9337cac4420bbca7e2f9255214651f9c4d.tar.gz
glibc-589abe9337cac4420bbca7e2f9255214651f9c4d.tar.xz
glibc-589abe9337cac4420bbca7e2f9255214651f9c4d.zip
* sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range): Use
	__LONG_LONG_PAIR macro.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/sync_file_range.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/sync_file_range.c b/sysdeps/unix/sysv/linux/sync_file_range.c
index aabe192341..7519bb7fe6 100644
--- a/sysdeps/unix/sysv/linux/sync_file_range.c
+++ b/sysdeps/unix/sysv/linux/sync_file_range.c
@@ -29,9 +29,10 @@
 int
 sync_file_range (int fd, __off64_t from, __off64_t to, int flags)
 {
-  return INLINE_SYSCALL (sync_file_range, 6, fd, (off_t) (from >> 32),
-			 (off_t) (from & 0xffffffff), (off_t) (to >> 32),
-			 (off_t) (to & 0xffffffff), flags);
+  return INLINE_SYSCALL (sync_file_range, 6, fd,
+			 __LONG_LONG_PAIR ((long) (from >> 32), (long) from),
+			 __LONG_LONG_PAIR ((long) (to >> 32), (long) to),
+			 flags);
 }
 #else
 int