diff options
author | Andreas Jaeger <aj@suse.de> | 2003-08-25 18:51:40 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2003-08-25 18:51:40 +0000 |
commit | ecc791d354229f19b85f7fdb3da0045508e2b743 (patch) | |
tree | 1ed2d6255a9695160ee3855e28ae89b5aff0b9e8 | |
parent | 062df960458326de96ff41af51b92bcb56053129 (diff) | |
download | glibc-ecc791d354229f19b85f7fdb3da0045508e2b743.zip glibc-ecc791d354229f19b85f7fdb3da0045508e2b743.tar.gz glibc-ecc791d354229f19b85f7fdb3da0045508e2b743.tar.bz2 |
* sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
__LONG_LONG_PAIR to long.
2003-08-25 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
__LONG_LONG_PAIR to long.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/posix_fadvise64.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2003-08-25 Andreas Jaeger <aj@suse.de> + + * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of + __LONG_LONG_PAIR to long. + 2003-08-25 Philip Blundell <philb@gnu.org> * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define. diff --git a/sysdeps/unix/sysv/linux/posix_fadvise64.c b/sysdeps/unix/sysv/linux/posix_fadvise64.c index 89dfd8c..d5e1ca5 100644 --- a/sysdeps/unix/sysv/linux/posix_fadvise64.c +++ b/sysdeps/unix/sysv/linux/posix_fadvise64.c @@ -33,8 +33,8 @@ __posix_fadvise64_l64 (int fd, off64_t offset, off64_t len, int advise) #ifdef __NR_fadvise64_64 INTERNAL_SYSCALL_DECL (err); int ret = INTERNAL_SYSCALL (fadvise64_64, err, 6, fd, - __LONG_LONG_PAIR (offset >> 32, offset), - __LONG_LONG_PAIR (len >> 32, len), + __LONG_LONG_PAIR ((long)(offset >> 32), (long)offset), + __LONG_LONG_PAIR ((long)(len >> 32), (long)len), advise); if (!INTERNAL_SYSCALL_ERROR_P (ret, err)) return 0; @@ -50,7 +50,7 @@ __posix_fadvise64_l64 (int fd, off64_t offset, off64_t len, int advise) INTERNAL_SYSCALL_DECL (err2); int ret2 = INTERNAL_SYSCALL (fadvise64, err2, 5, fd, - __LONG_LONG_PAIR (offset >> 32, offset), + __LONG_LONG_PAIR ((long)(offset >> 32), (long)offset), (off_t) len, advise); if (!INTERNAL_SYSCALL_ERROR_P (ret2, err2)) return 0; |