summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorbje <bje>1998-07-22 05:01:09 +0000
committerbje <bje>1998-07-22 05:01:09 +0000
commit8fed7fd6f601e289477c1974ae9cf552aa15d426 (patch)
treeb730087d00d33080268de17c45aa74e7c6e2a9e2 /tests
parent492c73cf1f1b3e35b394aec991d1201726ec606d (diff)
1998-07-22 Ben Elliston <bje@cygnus.com>
* exit2.c (main): Fix size of pthread_t array.
Diffstat (limited to 'tests')
-rw-r--r--tests/exit2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/exit2.c b/tests/exit2.c
index 40f218b..23c4497 100644
--- a/tests/exit2.c
+++ b/tests/exit2.c
@@ -17,14 +17,14 @@ func(void * arg)
int
main(int argc, char * argv[])
{
- pthread_t id[2];
+ pthread_t id[4];
int i;
/* Create a few threads, make them say hello and then exit. */
for (i = 0; i < 4; i++)
{
- pthread_create(&id, NULL, entry, (void *) i);
+ pthread_create(&id[i], NULL, entry, (void *) i);
}
/* Semantics should be the same as POSIX. Wait for the workers. */