From 6f3f843335004fa71719a474f2a7c4916bd949dc Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 1 Apr 2013 05:09:17 -0400 Subject: linux: use OFF64_HI_LO rather than __LONG_LONG_PAIR This macro takes care of the shift/mask split for us, so no need to open code this ourselves and then use __LONG_LONG_PAIR. Signed-off-by: Mike Frysinger --- libc/sysdeps/linux/common/posix_fadvise64.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'libc/sysdeps/linux/common/posix_fadvise64.c') diff --git a/libc/sysdeps/linux/common/posix_fadvise64.c b/libc/sysdeps/linux/common/posix_fadvise64.c index 067085430..5a302d3c9 100644 --- a/libc/sysdeps/linux/common/posix_fadvise64.c +++ b/libc/sysdeps/linux/common/posix_fadvise64.c @@ -25,13 +25,11 @@ int posix_fadvise64(int fd, off64_t offset, off64_t len, int advice) INTERNAL_SYSCALL_DECL (err); # if defined __powerpc__ || defined __arm__ || defined __xtensa__ int ret = INTERNAL_SYSCALL (fadvise64_64, err, 6, fd, advice, - __LONG_LONG_PAIR((long)(offset >> 32), (long)offset), - __LONG_LONG_PAIR((long)(len >> 32), (long)len)); + OFF64_HI_LO (offset), OFF64_HI_LO (len)); # else int ret = INTERNAL_SYSCALL (fadvise64_64, err, 6, fd, - __LONG_LONG_PAIR((long)(offset >> 32), (long)offset), - __LONG_LONG_PAIR((long)(len >> 32), (long)len), - advice); + OFF64_HI_LO (offset), OFF64_HI_LO (len), + advice); # endif if (INTERNAL_SYSCALL_ERROR_P (ret, err)) return INTERNAL_SYSCALL_ERRNO (ret, err); -- cgit v1.2.3