]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: replace NULL by nil
authorDavid du Colombier <0intro@gmail.com>
Wed, 18 Feb 2015 07:25:30 +0000 (08:25 +0100)
committerDavid du Colombier <0intro@gmail.com>
Wed, 18 Feb 2015 07:49:04 +0000 (07:49 +0000)
In CL 3964, NULL was used instead of nil.
However, Plan 9 doesn't declare NULL.

Change-Id: Ied3850aca5c8bca5974105129a37d575df33f6ec
Reviewed-on: https://go-review.googlesource.com/5150
Reviewed-by: Minux Ma <minux@golang.org>
src/cmd/gc/closure.c

index 9aeac8aba4c47c9e53610dc48edfcb9f170a20fa..35b6d4b1b4e9bfeec1397615a6195d6afcb0df02 100644 (file)
@@ -140,8 +140,8 @@ closurename(Node *n)
        if(n->sym != S)
                return n->sym;
        gen = 0;
-       outer = NULL;
-       prefix = NULL;
+       outer = nil;
+       prefix = nil;
        if(n->outerfunc == N) {
                // Global closure.
                outer = "glob";