From 466618568dd9045eaf0e9ce505d1e2c9edd47243 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 13 Feb 2000 08:17:12 +0000 Subject: Update. 2000-02-12 Andreas Jaeger * sysdeps/unix/sysv/linux/i386/msgctl.c (__new_msgctl): Move errno declaration to place where it's needed to avoid compiler warning. * sysdeps/unix/sysv/linux/i386/semctl.c (__new_semctl): Likewise. * locale/weightwc.h (findidx): Correct find index value. --- sysdeps/unix/sysv/linux/i386/msgctl.c | 4 ++-- sysdeps/unix/sysv/linux/i386/semctl.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/unix/sysv/linux/i386/msgctl.c b/sysdeps/unix/sysv/linux/i386/msgctl.c index 2ff88882c6..07b5d0d720 100644 --- a/sysdeps/unix/sysv/linux/i386/msgctl.c +++ b/sysdeps/unix/sysv/linux/i386/msgctl.c @@ -79,7 +79,7 @@ __new_msgctl (int msqid, int cmd, struct msqid_ds *buf) } { - int save_errno, result; + int result; struct __old_msqid_ds old; #ifdef __NR_getuid32 @@ -87,7 +87,7 @@ __new_msgctl (int msqid, int cmd, struct msqid_ds *buf) { if (__libc_missing_32bit_uids < 0) { - save_errno = errno; + int save_errno = errno; /* Test presence of new IPC by testing for getuid32 syscall. */ result = INLINE_SYSCALL (getuid32, 0); diff --git a/sysdeps/unix/sysv/linux/i386/semctl.c b/sysdeps/unix/sysv/linux/i386/semctl.c index 7704d2387b..6eb64b3a64 100644 --- a/sysdeps/unix/sysv/linux/i386/semctl.c +++ b/sysdeps/unix/sysv/linux/i386/semctl.c @@ -104,7 +104,7 @@ __new_semctl (int semid, int semnum, int cmd, ...) } { - int save_errno, result; + int result; struct __old_semid_ds old; struct semid_ds *buf; @@ -113,7 +113,7 @@ __new_semctl (int semid, int semnum, int cmd, ...) { if (__libc_missing_32bit_uids < 0) { - save_errno = errno; + int save_errno = errno; /* Test presence of new IPC by testing for getuid32 syscall. */ result = INLINE_SYSCALL (getuid32, 0); -- cgit 1.4.1