Patch for msgctl/shmctl
Andreas Jaeger
aj@suse.de
Sat Feb 12 01:53:00 GMT 2000
I got the following compiler warnings:
../sysdeps/unix/sysv/linux/i386/msgctl.c:82: warning: unused variable `save_errno'
../sysdeps/unix/sysv/linux/i386/semctl.c:107: warning: unused variable `save_errno'
Please apply the appended patch,
Andreas
2000-02-12 Andreas Jaeger <aj@suse.de>
* 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/shmctl.c (__new_shmctl): Likewise.
============================================================
Index: sysdeps/unix/sysv/linux/i386/msgctl.c
--- sysdeps/unix/sysv/linux/i386/msgctl.c 2000/02/11 19:42:58 1.1
+++ sysdeps/unix/sysv/linux/i386/msgctl.c 2000/02/12 09:43:10
@@ -79,7 +79,7 @@
}
{
- int save_errno, result;
+ int result;
struct __old_msqid_ds old;
#ifdef __NR_getuid32
@@ -87,7 +87,7 @@
{
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);
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de
More information about the Libc-hacker
mailing list