1
0
mirror of https://github.com/golang/go synced 2024-11-20 02:54:39 -07:00

net: fix laddr typo in test code.

R=rsc
CC=golang-dev
https://golang.org/cl/4381050
This commit is contained in:
Nigel Tao 2011-04-12 10:36:41 +10:00
parent 0cc055e8f7
commit 420a17e371

View File

@ -69,9 +69,12 @@ func TestICMP(t *testing.T) {
return return
} }
var laddr *IPAddr var (
laddr *IPAddr
err os.Error
)
if *srchost != "" { if *srchost != "" {
laddr, err := ResolveIPAddr(*srchost) laddr, err = ResolveIPAddr(*srchost)
if err != nil { if err != nil {
t.Fatalf(`net.ResolveIPAddr("%v") = %v, %v`, *srchost, laddr, err) t.Fatalf(`net.ResolveIPAddr("%v") = %v, %v`, *srchost, laddr, err)
} }