Skip to content

Commit 1709fde

Browse files
committed
Improve prototype casting for thread calls.
1 parent 8ac3510 commit 1709fde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/ecpg/test/test_thread.pgc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ EXEC SQL END DECLARE SECTION;
4848
EXEC SQL AT test0 COMMIT WORK;
4949
EXEC SQL DISCONNECT test0;
5050

51-
pthread_create(&thread1, NULL, (void *) ins1, NULL);
52-
pthread_create(&thread2, NULL, (void *) ins2, NULL);
51+
pthread_create(&thread1, NULL, (void * (*)(void *)) ins1, NULL);
52+
pthread_create(&thread2, NULL, (void * (*)(void *)) ins2, NULL);
5353
pthread_join(thread1, NULL);
5454
pthread_join(thread2, NULL);
5555

0 commit comments

Comments
 (0)