diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-09-03 22:34:08 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-09-03 22:34:08 +0000 |
commit | 38eb18092c88a2a6e826c4fa50d60810c6735abd (patch) | |
tree | 3fc425c8e837974fea9e63a1eba1e94397a69363 /src/tools/test_thread_funcs.c | |
parent | ee4ae6ceb2e5722d1c4c2d5888f7697141d6a046 (diff) | |
download | postgresql-38eb18092c88a2a6e826c4fa50d60810c6735abd.tar.gz postgresql-38eb18092c88a2a6e826c4fa50d60810c6735abd.zip |
Tighten casting of function call pointers for threads.
Diffstat (limited to 'src/tools/test_thread_funcs.c')
-rw-r--r-- | src/tools/test_thread_funcs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/test_thread_funcs.c b/src/tools/test_thread_funcs.c index 9d7b3ab83ae..6fc781a2b64 100644 --- a/src/tools/test_thread_funcs.c +++ b/src/tools/test_thread_funcs.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/tools/Attic/test_thread_funcs.c,v 1.2 2003/09/03 19:36:31 momjian Exp $ + * $Header: /cvsroot/pgsql/src/tools/Attic/test_thread_funcs.c,v 1.3 2003/09/03 22:34:08 momjian Exp $ * * This program tests to see if your standard libc functions use * pthread_setspecific()/pthread_getspecific() to be thread-safe. @@ -57,8 +57,8 @@ int main(int argc, char *argv[]) return 1; } - pthread_create(&thread1, NULL, (void *) func_call_1, NULL); - pthread_create(&thread2, NULL, (void *) func_call_2, NULL); + pthread_create(&thread1, NULL, (void * (*)(void *)) func_call_1, NULL); + pthread_create(&thread2, NULL, (void * (*)(void *)) func_call_2, NULL); pthread_join(thread1, NULL); pthread_join(thread2, NULL); |