tools: check for NULL as error value of vme_map

parent 8ab06fee
......@@ -71,7 +71,7 @@ int main(int argc, char *argv[])
mapp->sizel = 0x80000;
mapp->vme_addrl = vmebase;
if ((ptr = vme_map(mapp, 1)) == (void *)-1) {
if ((ptr = vme_map(mapp, 1)) == NULL) {
printf("could not map at 0x%08x\n", vmebase);
exit(1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment