mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-10 09:13:58 -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) {
|
||||
printf("I'm %d, PID: %d\n", (int)param, getpid());
|
||||
if (param == NULL) {
|
||||
return 1;
|
||||
return (void*)1;
|
||||
} else {
|
||||
//sleep(10);
|
||||
return 2;
|
||||
return (void*)2;
|
||||
}
|
||||
}
|
||||
|
||||
int main() {
|
||||
pthread_create(&thread, NULL, work, (void*)1);
|
||||
return work(NULL);
|
||||
return (int)work(NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user