From: David du Colombier <0intro@gmail.com> Date: Wed, 18 Feb 2015 07:25:30 +0000 (+0100) Subject: cmd/gc: replace NULL by nil X-Git-Tag: go1.5beta1~1961 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2bcfe8b9357f5f823211157c3b67bb03e2f89a2d;p=gostls13.git cmd/gc: replace NULL by nil 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 --- diff --git a/src/cmd/gc/closure.c b/src/cmd/gc/closure.c index 9aeac8aba4..35b6d4b1b4 100644 --- a/src/cmd/gc/closure.c +++ b/src/cmd/gc/closure.c @@ -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";