Fix posix_fadvise on powerpc32

Andreas Schwab schwab@suse.de
Mon Sep 1 15:05:00 GMT 2003


Andreas Jaeger <aj@suse.de> writes:

> Index: sysdeps/unix/sysv/linux/posix_fadvise64.c
> --- sysdeps/unix/sysv/linux/posix_fadvise64.c	17 Aug 2003 00:36:42 -0000	1.1
> +++ sysdeps/unix/sysv/linux/posix_fadvise64.c	25 Aug 2003 18:50:57 -0000
> @@ -33,8 +33,8 @@ __posix_fadvise64_l64 (int fd, off64_t o
>  #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),

Formatting: space after cast.

> @@ -50,7 +50,7 @@ __posix_fadvise64_l64 (int fd, off64_t o
>  
>    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),

Same.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-hacker/attachments/20030901/d84dffdd/attachment.sig>


More information about the Libc-hacker mailing list