From 98ad81f640bacc1fe9ec61788a2061493ff9d5fd Mon Sep 17 00:00:00 2001 From: deischen Date: Wed, 13 Nov 2002 21:55:22 +0000 Subject: Argh, change declaration of two-dimensional array so that it actually builds. --- lib/libc/gen/_pthread_stubs.c | 2 +- lib/libc/include/libc_private.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/gen/_pthread_stubs.c b/lib/libc/gen/_pthread_stubs.c index 0555d78..ef9ecb4 100644 --- a/lib/libc/gen/_pthread_stubs.c +++ b/lib/libc/gen/_pthread_stubs.c @@ -56,7 +56,7 @@ static int stub_zero(void); #define PJT_DUAL_ENTRY(entry) \ (pthread_func_t)entry, (pthread_func_t)entry -pthread_func_t __thr_jtable[PJT_MAX][2] = { +pthread_func_entry_t __thr_jtable[PJT_MAX] = { {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_COND_BROADCAST */ {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_COND_DESTROY */ {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_COND_INIT */ diff --git a/lib/libc/include/libc_private.h b/lib/libc/include/libc_private.h index a588c8a..3736c56 100644 --- a/lib/libc/include/libc_private.h +++ b/lib/libc/include/libc_private.h @@ -102,8 +102,9 @@ typedef enum { } pjt_index_t; typedef int (*pthread_func_t)(void); +typedef pthread_func_t pthread_func_entry_t[2]; -extern pthread_func_t *__thr_jtable[]; +extern pthread_func_entry_t __thr_jtable[]; /* * This is a pointer in the C run-time startup code. It is used -- cgit v1.1