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_fadvise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common/posix_fadvise.c') diff --git a/libc/sysdeps/linux/common/posix_fadvise.c b/libc/sysdeps/linux/common/posix_fadvise.c index 22df56982..f5bbaccb9 100644 --- a/libc/sysdeps/linux/common/posix_fadvise.c +++ b/libc/sysdeps/linux/common/posix_fadvise.c @@ -27,7 +27,7 @@ int posix_fadvise(int fd, off_t offset, off_t len, int advice) # else ret = INTERNAL_SYSCALL(fadvise64, err, 5, fd, # endif - __LONG_LONG_PAIR (offset >> 31, offset), len, advice); + OFF_HI_LO (offset), len, advice); # endif if (INTERNAL_SYSCALL_ERROR_P (ret, err)) return INTERNAL_SYSCALL_ERRNO (ret, err); -- cgit v1.2.3