Improve prototype casting for thread calls.

This commit is contained in:
Bruce Momjian 2003-09-05 01:53:41 +00:00
parent 8ac3510a4c
commit 1709fde56a
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ EXEC SQL END DECLARE SECTION;
EXEC SQL AT test0 COMMIT WORK;
EXEC SQL DISCONNECT test0;
pthread_create(&thread1, NULL, (void *) ins1, NULL);
pthread_create(&thread2, NULL, (void *) ins2, NULL);
pthread_create(&thread1, NULL, (void * (*)(void *)) ins1, NULL);
pthread_create(&thread2, NULL, (void * (*)(void *)) ins2, NULL);
pthread_join(thread1, NULL);
pthread_join(thread2, NULL);