summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2002-11-13 21:55:22 +0000
committerdeischen <deischen@FreeBSD.org>2002-11-13 21:55:22 +0000
commit98ad81f640bacc1fe9ec61788a2061493ff9d5fd (patch)
treed88f7953040e5facb063979c9234ec26f5545c7c /lib
parent51cb1ae47b72c0ab4605f2a92842d6b54a52fe31 (diff)
downloadFreeBSD-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.c2
-rw-r--r--lib/libc/include/libc_private.h3
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
OpenPOWER on IntegriCloud