]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/[568]l/obj.c: NULL is not recognised in Plan 9 build, use nil instead.
authorLucio De Re <lucio.dere@gmail.com>
Thu, 30 May 2013 05:02:10 +0000 (15:02 +1000)
committerDave Cheney <dave@cheney.net>
Thu, 30 May 2013 05:02:10 +0000 (15:02 +1000)
Fixes #5591.

R=golang-dev, dave, minux.ma, cshapiro
CC=carl shapiro <cshapiro, golang-dev
https://golang.org/cl/9839046

src/cmd/5l/obj.c
src/cmd/6l/obj.c
src/cmd/8l/obj.c

index 47831e39c61a83f06c92200d01b60171edbc1b98..8ecc23821ee0a9640226bf782d79084a3b2c79d2 100644 (file)
@@ -647,7 +647,7 @@ loop:
        case APTRS:
                if(skip)
                        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);
                        errorexit();
                }
index b4e77388d56a72b450457a448bef6013b4fa1547..0fcafd7018d0cfdb77596850a1e4cbec1b3205fa 100644 (file)
@@ -636,7 +636,7 @@ loop:
        case APTRS:
                if(skip)
                        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);
                        errorexit();
                }
index b5fa256f2bda579fc7d1d88441dfc0ef348f94cb..1cc0444c4ba74b612384b8fef7b918ea28e5ed5e 100644 (file)
@@ -646,7 +646,7 @@ loop:
        case APTRS:
                if(skip)
                        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);
                        errorexit();
                }