Commit 1709fde5 authored by Bruce Momjian's avatar Bruce Momjian

Improve prototype casting for thread calls.

parent 8ac3510a
...@@ -48,8 +48,8 @@ EXEC SQL END DECLARE SECTION; ...@@ -48,8 +48,8 @@ EXEC SQL END DECLARE SECTION;
EXEC SQL AT test0 COMMIT WORK; EXEC SQL AT test0 COMMIT WORK;
EXEC SQL DISCONNECT test0; EXEC SQL DISCONNECT test0;
pthread_create(&thread1, NULL, (void *) ins1, NULL); pthread_create(&thread1, NULL, (void * (*)(void *)) ins1, NULL);
pthread_create(&thread2, NULL, (void *) ins2, NULL); pthread_create(&thread2, NULL, (void * (*)(void *)) ins2, NULL);
pthread_join(thread1, NULL); pthread_join(thread1, NULL);
pthread_join(thread2, NULL); pthread_join(thread2, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment