diff options
author | wkj <devnull@localhost> | 2004-07-09 01:54:06 +0000 |
---|---|---|
committer | wkj <devnull@localhost> | 2004-07-09 01:54:06 +0000 |
commit | a87638642c99d88a3543e0cd5864c9e54133fbee (patch) | |
tree | ccacfd6c58da316c208f1f014be0a15a28cad4b8 /src/cmd/draw | |
parent | eac9e0183f550f950bfcf5cdad959976cbe041ba (diff) | |
download | plan9port-a87638642c99d88a3543e0cd5864c9e54133fbee.tar.gz plan9port-a87638642c99d88a3543e0cd5864c9e54133fbee.tar.bz2 plan9port-a87638642c99d88a3543e0cd5864c9e54133fbee.zip |
Compare function pointers against 0 rather than nil.
Diffstat (limited to 'src/cmd/draw')
-rw-r--r-- | src/cmd/draw/stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/draw/stats.c b/src/cmd/draw/stats.c index 0d249a8b..2f606467 100644 --- a/src/cmd/draw/stats.c +++ b/src/cmd/draw/stats.c @@ -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) |