mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Merge branch 'GP-0_ryanmkurtz_PR-4657_jobermayr_clang-fix'
This commit is contained in:
@@ -21,14 +21,14 @@ pthread_t thread;
|
|||||||
void* work(void* param) {
|
void* work(void* param) {
|
||||||
printf("I'm %d, PID: %d\n", (int)param, getpid());
|
printf("I'm %d, PID: %d\n", (int)param, getpid());
|
||||||
if (param == NULL) {
|
if (param == NULL) {
|
||||||
return 1;
|
return (void*)1;
|
||||||
} else {
|
} else {
|
||||||
//sleep(10);
|
//sleep(10);
|
||||||
return 2;
|
return (void*)2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
pthread_create(&thread, NULL, work, (void*)1);
|
pthread_create(&thread, NULL, work, (void*)1);
|
||||||
return work(NULL);
|
return (int)work(NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user