diff options
author | Roland McGrath <roland@gnu.org> | 2004-11-03 20:31:21 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2004-11-03 20:31:21 +0000 |
commit | c4d7bd3907c64ce6ab670cfe97557881b6da2d32 (patch) | |
tree | 9666b5610ae0af2bd9cac86ac0e8d9b7895a7a7e | |
parent | 27bbfab0b7e474d34330679284e81c0b1e3a20e0 (diff) | |
download | glibc-c4d7bd3907c64ce6ab670cfe97557881b6da2d32.tar.gz |
* debug/tst-chk1.c (ret): New volatile variable.
(CHK_FAIL_END): Remove redundant ret setting.
(do_test): Remote ret variable.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | debug/tst-chk1.c | 4 | ||||
-rw-r--r-- | nptl/ChangeLog | 4 | ||||
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/smp.h | 1 |
4 files changed, 12 insertions, 3 deletions
@@ -1,3 +1,9 @@ +2004-11-02 Jakub Jelinek <jakub@redhat.com> + + * debug/tst-chk1.c (ret): New volatile variable. + (CHK_FAIL_END): Remove redundant ret setting. + (do_test): Remote ret variable. + 2004-01-03 Paolo Bonzini <bonzini@gnu.org> * posix/regex_internal.h (__regfree) [!_LIBC]: Define to regfree. diff --git a/debug/tst-chk1.c b/debug/tst-chk1.c index 639da3847c..ef7f278a8c 100644 --- a/debug/tst-chk1.c +++ b/debug/tst-chk1.c @@ -50,7 +50,7 @@ do_prepare (void) } } -volatile int chk_fail_ok; +volatile int chk_fail_ok, ret; jmp_buf chk_fail_buf; static void @@ -86,7 +86,6 @@ int num2 = 987654; #define CHK_FAIL_END \ chk_fail_ok = 0; \ FAIL (); \ - ret = 1; \ } #if __USE_FORTIFY_LEVEL >= 2 #define CHK_FAIL2_START CHK_FAIL_START @@ -99,7 +98,6 @@ int num2 = 987654; static int do_test (void) { - int ret = 0; struct sigaction sa; sa.sa_handler = handler; sa.sa_flags = 0; diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 33e2d8ae44..f7c87c2632 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,7 @@ +2004-11-02 Jakub Jelinek <jakub@redhat.com> + + * sysdeps/unix/sysv/linux/smp.h: Include <errno.h>. + 2004-10-29 Kaz Kojima <kkojima@rr.iij4u.or.jp> * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): diff --git a/nptl/sysdeps/unix/sysv/linux/smp.h b/nptl/sysdeps/unix/sysv/linux/smp.h index c1160a7939..4f4d358d32 100644 --- a/nptl/sysdeps/unix/sysv/linux/smp.h +++ b/nptl/sysdeps/unix/sysv/linux/smp.h @@ -17,6 +17,7 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include <errno.h> #include <fcntl.h> #include <string.h> #include <sys/sysctl.h> |