mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
A few, hopefully last, NULL-as-an-integer misuses.
This commit is contained in:
parent
0d70a4c1f5
commit
34ed812028
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: tc-m68k.c,v 1.5 2002/06/26 11:25:43 espie Exp $ */
|
||||
/* $OpenBSD: tc-m68k.c,v 1.6 2011/04/12 21:38:16 miod Exp $ */
|
||||
|
||||
/* tc-m68k.c All the m68020 specific stuff in one convenient, huge,
|
||||
slow to compile, easy to find file.
|
||||
@ -1233,7 +1233,7 @@ char *instring;
|
||||
|
||||
if (p == instring) {
|
||||
the_ins.error = "No operator";
|
||||
the_ins.opcode[0] = NULL;
|
||||
the_ins.opcode[0] = 0;
|
||||
/* the_ins.numo=1; */
|
||||
return;
|
||||
}
|
||||
@ -1248,7 +1248,7 @@ char *instring;
|
||||
|
||||
if (opcode == NULL) {
|
||||
the_ins.error = "Unknown operator";
|
||||
the_ins.opcode[0] = NULL;
|
||||
the_ins.opcode[0] = 0;
|
||||
/* the_ins.numo=1; */
|
||||
return;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: vme.c,v 1.50 2011/04/07 15:30:15 miod Exp $ */
|
||||
/* $OpenBSD: vme.c,v 1.51 2011/04/12 21:38:18 miod Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2004, Miodrag Vallat.
|
||||
* Copyright (c) 1999 Steve Murphree, Jr.
|
||||
@ -94,7 +94,7 @@ vme_map(bus_addr_t addr, bus_size_t size, int flags, bus_space_handle_t *ret)
|
||||
vaddr_t map;
|
||||
|
||||
map = (vaddr_t)mapiodev((paddr_t)addr, size);
|
||||
if (map == NULL)
|
||||
if (map == 0)
|
||||
return ENOMEM;
|
||||
|
||||
*ret = (bus_space_handle_t)map;
|
||||
@ -343,7 +343,7 @@ vmepmap(sc, vmeaddr, bustype)
|
||||
#endif
|
||||
base = vme2chip_map(base, 16);
|
||||
#ifdef DEBUG
|
||||
if (base == NULL) {
|
||||
if (base == 0) {
|
||||
printf("%s: cannot map pa 0x%x\n",
|
||||
sc->dv_xname, base);
|
||||
}
|
||||
@ -356,7 +356,7 @@ vmepmap(sc, vmeaddr, bustype)
|
||||
#endif
|
||||
base = vme2chip_map(base, 32);
|
||||
#ifdef DEBUG
|
||||
if (base == NULL) {
|
||||
if (base == 0) {
|
||||
printf("%s: cannot map pa 0x%x\n",
|
||||
sc->dv_xname, base);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user