Compare function pointers against 0 rather than nil.
This commit is contained in:
parent
eac9e0183f
commit
a87638642c
13 changed files with 15 additions and 15 deletions
|
|
@ -58,7 +58,7 @@ delayednotes(Proc *p, void *v)
|
|||
for(n=notes; n<enotes; n++){
|
||||
if(n->proc == p){
|
||||
for(i=0; i<NFN; i++){
|
||||
if(onnotepid[i]!=p->pid || (fn = onnote[i])==nil)
|
||||
if(onnotepid[i]!=p->pid || (fn = onnote[i])==0)
|
||||
continue;
|
||||
if((*fn)(v, n->s))
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue