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/libmach | |
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/libmach')
-rw-r--r-- | src/libmach/crack.c | 2 | ||||
-rw-r--r-- | src/libmach/crackelf.c | 2 | ||||
-rw-r--r-- | src/libmach/map.c | 2 | ||||
-rw-r--r-- | src/libmach/stabs.c | 2 | ||||
-rw-r--r-- | src/libmach/sym.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/src/libmach/crack.c b/src/libmach/crack.c index 75651897..3dfe254b 100644 --- a/src/libmach/crack.c +++ b/src/libmach/crack.c @@ -66,7 +66,7 @@ mapfile(Fhdr *fp, ulong base, Map *map, Regs **regs) werrstr("no map"); return -1; } - if(fp->map == nil){ + if(fp->map == 0){ werrstr("cannot load map for this file type"); return -1; } diff --git a/src/libmach/crackelf.c b/src/libmach/crackelf.c index b89e1fba..eb99947d 100644 --- a/src/libmach/crackelf.c +++ b/src/libmach/crackelf.c @@ -287,7 +287,7 @@ mapcoreregs(Fhdr *fp, Map *map, Regs **rp) UregRegs *r; elf = fp->elf; - if(elf->coreregs == nil){ + if(elf->coreregs == 0){ werrstr("cannot parse %s %s cores", fp->mname, fp->aname); return -1; } diff --git a/src/libmach/map.c b/src/libmach/map.c index 2745dd4c..bfb5f722 100644 --- a/src/libmach/map.c +++ b/src/libmach/map.c @@ -40,7 +40,7 @@ addseg(Map *map, Seg seg) if(ss == nil) return -1; map->seg = ss; - if(seg.rw == nil){ + if(seg.rw == 0){ if(seg.name && strcmp(seg.name, "zero") == 0) seg.rw = zerorw; else if(seg.p) diff --git a/src/libmach/stabs.c b/src/libmach/stabs.c index d34bb864..18805a51 100644 --- a/src/libmach/stabs.c +++ b/src/libmach/stabs.c @@ -17,7 +17,7 @@ stabsym(Stab *stabs, int i, StabSym *sym) werrstr("no stabs"); return -1; } - if(stabs->e2==nil || stabs->e4==nil){ + if(stabs->e2==0 || stabs->e4==0){ werrstr("no data extractors"); return -1; } diff --git a/src/libmach/sym.c b/src/libmach/sym.c index 8347630c..b734957f 100644 --- a/src/libmach/sym.c +++ b/src/libmach/sym.c @@ -427,7 +427,7 @@ syminit(Fhdr *hdr) int i; Symbol *r, *w, *es; - if(hdr->syminit == nil){ + if(hdr->syminit == 0){ werrstr("no debugging symbols"); return -1; } |