]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix vet nit
authorJosh Bleecher Snyder <josharian@gmail.com>
Sat, 5 Nov 2016 17:05:27 +0000 (10:05 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sat, 5 Nov 2016 18:24:40 +0000 (18:24 +0000)
net/fd_windows.go:121: syscall.WSABuf composite literal uses unkeyed fields

Change-Id: I91cbe38199d5b6828379a854d08f6ceaf687dd82
Reviewed-on: https://go-review.googlesource.com/32760
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/fd_windows.go

index 40b4aa1d7a33051f6e13ee16554a520c98c3293d..a976f2ac7f9d324d404118347b60e304db00f5da 100644 (file)
@@ -118,7 +118,7 @@ func (o *operation) InitBufs(buf *Buffers) {
                if len(b) > 0 {
                        p = &b[0]
                }
-               o.bufs = append(o.bufs, syscall.WSABuf{uint32(len(b)), p})
+               o.bufs = append(o.bufs, syscall.WSABuf{Len: uint32(len(b)), Buf: p})
        }
 }