diff options
author | deischen <deischen@FreeBSD.org> | 2002-11-13 21:55:22 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2002-11-13 21:55:22 +0000 |
commit | 98ad81f640bacc1fe9ec61788a2061493ff9d5fd (patch) | |
tree | d88f7953040e5facb063979c9234ec26f5545c7c /lib | |
parent | 51cb1ae47b72c0ab4605f2a92842d6b54a52fe31 (diff) | |
download | FreeBSD-src-98ad81f640bacc1fe9ec61788a2061493ff9d5fd.zip FreeBSD-src-98ad81f640bacc1fe9ec61788a2061493ff9d5fd.tar.gz |
Argh, change declaration of two-dimensional array so that it actually
builds.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/_pthread_stubs.c | 2 | ||||
-rw-r--r-- | lib/libc/include/libc_private.h | 3 |
2 files changed, 3 insertions, 2 deletions
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 |