From: Anthony Martin Date: Mon, 6 Feb 2012 00:59:32 +0000 (-0800) Subject: net: fix Plan 9 build X-Git-Tag: weekly.2012-02-07~56 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b9917045dadeb8a2158cf291d71f4e0124cf6ced;p=gostls13.git net: fix Plan 9 build R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/5631051 --- diff --git a/src/pkg/net/ipsock_plan9.go b/src/pkg/net/ipsock_plan9.go index 15657b96f0..597b127754 100644 --- a/src/pkg/net/ipsock_plan9.go +++ b/src/pkg/net/ipsock_plan9.go @@ -23,7 +23,7 @@ func probeIPv6Stack() (supportsIPv6, supportsIPv4map bool) { // parsePlan9Addr parses address of the form [ip!]port (e.g. 127.0.0.1!80). func parsePlan9Addr(s string) (ip IP, iport int, err error) { addr := IPv4zero // address contains port only - i = byteIndex(s, '!') + i := byteIndex(s, '!') if i >= 0 { addr = ParseIP(s[:i]) if addr == nil {