Compare function pointers against 0 rather than nil.

This commit is contained in:
wkj 2004-07-09 01:54:06 +00:00
parent eac9e0183f
commit a87638642c
13 changed files with 15 additions and 15 deletions

View file

@ -146,7 +146,7 @@ main(int argc, char **argv)
/*
* Read new files into memory
*/
if(rdproto(proto, src, addprotofile, nil, &iroot) < 0)
if(rdproto(proto, src, addprotofile, 0, &iroot) < 0)
sysfatal("rdproto: %r");
if(mk9660){

View file

@ -156,7 +156,7 @@ fsysproc(void *v)
error("convert error in convM2S");
if(DEBUG)
fprint(2, "%F\n", &x->fcall);
if(fcall[x->fcall.type] == nil)
if(fcall[x->fcall.type] == 0)
x = respond(x, &t, "bad fcall type");
else{
if(x->fcall.type==Tversion || x->fcall.type==Tauth)

View file

@ -101,7 +101,7 @@ struct Machine
char *menu2str[Nvalue+1];
char xmenu2str[Nvalue+1][40];
Menu menu2 = {menu2str, nil};
Menu menu2 = {menu2str, 0};
int present[Nvalue];
Image *cols[Ncolor][3];
Graph *graph;
@ -792,7 +792,7 @@ threadmain(int argc, char *argv[])
for(j=0; j<ngraph; j++)
graph[i*ngraph+j].mach = &mach[i];
if(initdraw(nil, nil, "stats") < 0)
if(initdraw(0, nil, "stats") < 0)
sysfatal("initdraw: %r");
colinit();
if((mc = initmouse(nil, screen)) == nil)

View file

@ -75,7 +75,7 @@ main(int argc, char **argv)
}ARGEND;
/* read in all the images */
initdraw(nil, nil, nil);
initdraw(0, nil, nil);
if(argc < 1){
readicon("/fd/0");
} else {

View file

@ -233,7 +233,7 @@ fsysproc(void *v)
error("convert error in convM2S");
if(debug)
fprint(2, "<= %F\n", t);
if(fcall[t->type] == nil)
if(fcall[t->type] == 0)
fsysrespond(t, buf, Ebadfcall);
else{
if(t->type==Tversion || t->type==Tauth)