pid_t is not int..
This commit is contained in:
parent
2dcdf7749f
commit
edc1974126
|
@ -611,7 +611,7 @@ int main(int argc, char * * argv) {
|
|||
if(pid < 0) {
|
||||
perror("wait");
|
||||
} else {
|
||||
printf("child(%d) terminated with status %d\n", pid, status);
|
||||
printf("child(%d) terminated with status %d\n", (int)pid, status);
|
||||
}
|
||||
--child_to_wait_for;
|
||||
}
|
||||
|
@ -648,7 +648,7 @@ int main(int argc, char * * argv) {
|
|||
if(pid < 0) {
|
||||
perror("wait");
|
||||
} else {
|
||||
printf("child(%d) terminated with status %d\n", pid, status);
|
||||
printf("child(%d) terminated with status %d\n", (int)pid, status);
|
||||
}
|
||||
--child_to_wait_for;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue