Explorar o código

x/net/ipv4: fix build on older darwin kernels

A few adjustments for test cases will come in a following CL.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/179760044
Mikio Hara %!s(int64=11) %!d(string=hai) anos
pai
achega
724ab9af50
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      ipv4/sys_darwin.go

+ 2 - 2
ipv4/sys_darwin.go

@@ -43,8 +43,8 @@ func init() {
 	}
 	var i int
 	for i = range osver {
-		if osver[i] != '.' {
-			continue
+		if osver[i] == '.' {
+			break
 		}
 	}
 	// The IP_PKTINFO and protocol-independent multicast API were