diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-04-01 05:09:17 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-04-01 05:58:02 -0400 |
commit | 6f3f843335004fa71719a474f2a7c4916bd949dc (patch) | |
tree | f69e5917b3af0b41f91905586a09a2c479115b59 /libc/sysdeps/linux/common/posix_fadvise.c | |
parent | 9f9d2dea175bc0ea884bd4815acf2004b859c2b5 (diff) |
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 <vapier@gentoo.org>
Diffstat (limited to 'libc/sysdeps/linux/common/posix_fadvise.c')
-rw-r--r-- | libc/sysdeps/linux/common/posix_fadvise.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |