From a2c396f8a991e93cd606fdb9e3b4ca91fa652730 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 3 Sep 2002 02:45:12 +0000 Subject: * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call __pthread_initialize_minimal and __libc_check_standard_fds to match the generic version. * sysdeps/powerpc/Makefile (CFLAGS-pt-initfini.s): New variable. * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a warning when INLINE_SYSCALL macro uses the __syscall_ipc function. * locale/localeconv.c (__localeconv): Cast -1 to char to avoid warnings on platorms where char is unsigned. --- sysdeps/unix/sysv/linux/shmat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix') diff --git a/sysdeps/unix/sysv/linux/shmat.c b/sysdeps/unix/sysv/linux/shmat.c index 8168529a9f..2c243007f5 100644 --- a/sysdeps/unix/sysv/linux/shmat.c +++ b/sysdeps/unix/sysv/linux/shmat.c @@ -48,9 +48,10 @@ shmat (shmid, shmaddr, shmflg) length = shmds.shm_segsz; #endif - result = (void *__unbounded) INLINE_SYSCALL (ipc, 5, IPCOP_shmat, shmid, shmflg, + result = (void *__unbounded) INLINE_SYSCALL (ipc, 5, IPCOP_shmat, + shmid, shmflg, (long int) __ptrvalue (&raddr), - __ptrvalue (shmaddr)); + __ptrvalue ((void *) shmaddr)); if ((unsigned long) result <= -(unsigned long) SHMLBA) result = raddr; -- cgit 1.4.1