|
6 | 6 | * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group |
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California |
8 | 8 | * |
9 | | - *$Header: /cvsroot/pgsql/src/tools/Attic/test_thread_funcs.c,v 1.2 2003/09/0319:36:31 momjian Exp $ |
| 9 | + *$Header: /cvsroot/pgsql/src/tools/Attic/test_thread_funcs.c,v 1.3 2003/09/0322:34:08 momjian Exp $ |
10 | 10 | * |
11 | 11 | *This program tests to see if your standard libc functions use |
12 | 12 | *pthread_setspecific()/pthread_getspecific() to be thread-safe. |
@@ -57,8 +57,8 @@ int main(int argc, char *argv[]) |
57 | 57 | return1; |
58 | 58 | } |
59 | 59 |
|
60 | | -pthread_create(&thread1,NULL, (void*)func_call_1,NULL); |
61 | | -pthread_create(&thread2,NULL, (void*)func_call_2,NULL); |
| 60 | +pthread_create(&thread1,NULL, (void* (*)(void*))func_call_1,NULL); |
| 61 | +pthread_create(&thread2,NULL, (void* (*)(void*))func_call_2,NULL); |
62 | 62 | pthread_join(thread1,NULL); |
63 | 63 | pthread_join(thread2,NULL); |
64 | 64 |
|
|