summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-25 14:49:10 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-25 14:49:10 +0000
commite36eacabd785a1510d55656e80f864def182d0cd (patch)
tree548fc03ddb4dcce93e4ae15dad69815b8ed45aa3
parentc80bf1285c88f8cb72a0e303ba2c8eff083e9d55 (diff)
longjmp should use __libc_longjmp, use __typeof again now that it works correctly
-rw-r--r--libpthread/linuxthreads.old/ptlongjmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpthread/linuxthreads.old/ptlongjmp.c b/libpthread/linuxthreads.old/ptlongjmp.c
index d18f9b330..055a217d3 100644
--- a/libpthread/linuxthreads.old/ptlongjmp.c
+++ b/libpthread/linuxthreads.old/ptlongjmp.c
@@ -21,8 +21,8 @@
/* These functions are not declared anywhere since they shouldn't be
used at another place but here. */
-extern void __libc_siglongjmp (sigjmp_buf env, int val) attribute_noreturn;
-extern void __libc_longjmp (sigjmp_buf env, int val) attribute_noreturn;
+extern __typeof(siglongjmp) __libc_siglongjmp attribute_noreturn;
+extern __typeof(longjmp) __libc_longjmp attribute_noreturn;
static void pthread_cleanup_upto(__jmp_buf target)
{
@@ -48,5 +48,5 @@ void attribute_noreturn siglongjmp(sigjmp_buf env, int val)
void attribute_noreturn longjmp(jmp_buf env, int val)
{
pthread_cleanup_upto(env->__jmpbuf);
- __libc_siglongjmp(env, val);
+ __libc_longjmp(env, val);
}