Commit 0b88587d authored by Lucio De Re's avatar Lucio De Re Committed by Dave Cheney

cmd/[568]l/obj.c: NULL is not recognised in Plan 9 build, use nil instead.

Fixes #5591.

R=golang-dev, dave, minux.ma, cshapiro
CC=carl shapiro <cshapiro, golang-dev
https://golang.org/cl/9839046
parent 77d4347b
...@@ -647,7 +647,7 @@ loop: ...@@ -647,7 +647,7 @@ loop:
case APTRS: case APTRS:
if(skip) if(skip)
goto casedef; goto casedef;
if(cursym->nptrs == -1 || cursym->ptrs == NULL) { if(cursym->nptrs == -1 || cursym->ptrs == nil) {
diag("ldobj1: pointer map data provided for %s without a definition", cursym->name); diag("ldobj1: pointer map data provided for %s without a definition", cursym->name);
errorexit(); errorexit();
} }
......
...@@ -636,7 +636,7 @@ loop: ...@@ -636,7 +636,7 @@ loop:
case APTRS: case APTRS:
if(skip) if(skip)
goto casdef; goto casdef;
if(cursym->nptrs == -1 || cursym->ptrs == NULL) { if(cursym->nptrs == -1 || cursym->ptrs == nil) {
diag("ldobj1: pointer map data provided for %s without a definition", cursym->name); diag("ldobj1: pointer map data provided for %s without a definition", cursym->name);
errorexit(); errorexit();
} }
......
...@@ -646,7 +646,7 @@ loop: ...@@ -646,7 +646,7 @@ loop:
case APTRS: case APTRS:
if(skip) if(skip)
goto casdef; goto casdef;
if(cursym->nptrs == -1 || cursym->ptrs == NULL) { if(cursym->nptrs == -1 || cursym->ptrs == nil) {
diag("ldobj1: pointer map data provided for %s without a definition", cursym->name); diag("ldobj1: pointer map data provided for %s without a definition", cursym->name);
errorexit(); errorexit();
} }
......
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