Commit 420a17e3 authored by Nigel Tao's avatar Nigel Tao

net: fix laddr typo in test code.

R=rsc
CC=golang-dev
https://golang.org/cl/4381050
parent 0cc055e8
......@@ -69,9 +69,12 @@ func TestICMP(t *testing.T) {
return
}
var laddr *IPAddr
var (
laddr *IPAddr
err os.Error
)
if *srchost != "" {
laddr, err := ResolveIPAddr(*srchost)
laddr, err = ResolveIPAddr(*srchost)
if err != nil {
t.Fatalf(`net.ResolveIPAddr("%v") = %v, %v`, *srchost, laddr, err)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment