]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix Plan 9 build
authorAnthony Martin <ality@pbrane.org>
Mon, 6 Feb 2012 00:59:32 +0000 (16:59 -0800)
committerAnthony Martin <ality@pbrane.org>
Mon, 6 Feb 2012 00:59:32 +0000 (16:59 -0800)
R=golang-dev, alex.brainman
CC=golang-dev
https://golang.org/cl/5631051

src/pkg/net/ipsock_plan9.go

index 15657b96f002e01adb113b1219049a46d7c5f15b..597b1277544791d1e9ab80a3ff6dac4366029f23 100644 (file)
@@ -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 {