This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch for msgctl/shmctl



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]