more little compile fixes
This commit is contained in:
parent
7ffc5208a8
commit
22c7ebffda
6 changed files with 20 additions and 25 deletions
|
|
@ -256,7 +256,6 @@ void unwind(void);
|
|||
void userinit(void);
|
||||
void varreg(void);
|
||||
void varsym(void);
|
||||
Waitmsg* waitfor(int);
|
||||
void whatis(Lsym*);
|
||||
void windir(Map*, Node*, Node*, Node*);
|
||||
void yyerror(char*, ...);
|
||||
|
|
|
|||
|
|
@ -245,17 +245,3 @@ getstatus(int pid)
|
|||
return buf+56; /* ditto */
|
||||
}
|
||||
|
||||
Waitmsg*
|
||||
waitfor(int pid)
|
||||
{
|
||||
Waitmsg *w;
|
||||
|
||||
for(;;) {
|
||||
if((w = wait()) == nil)
|
||||
error("wait %r");
|
||||
if(w->pid == pid)
|
||||
return w;
|
||||
free(w);
|
||||
}
|
||||
return nil; /* ken */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue