From bebf4fe4f6ae3d8296a6b9144876d08e5de2261a Mon Sep 17 00:00:00 2001 From: bje Date: Sat, 12 Sep 1998 07:54:36 +0000 Subject: 1998-09-12 Ben Elliston * exit2.c (func): Return a value. (main): Call the right thread entry function. --- tests/exit2.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/exit2.c') diff --git a/tests/exit2.c b/tests/exit2.c index 23c4497..af906eb 100644 --- a/tests/exit2.c +++ b/tests/exit2.c @@ -12,6 +12,9 @@ func(void * arg) { printf("Hello world\n"); pthread_exit(arg); + + /* Never reached. */ + return 0; } int @@ -24,7 +27,7 @@ main(int argc, char * argv[]) for (i = 0; i < 4; i++) { - pthread_create(&id[i], NULL, entry, (void *) i); + pthread_create(&id[i], NULL, func, (void *) i); } /* Semantics should be the same as POSIX. Wait for the workers. */ -- cgit v1.2.3