Patchwork libgo patch committed: Fix SizeofSockaddrAny

login
register
mail settings
Submitter Ian Taylor
Date Nov. 26, 2013, 6:06 p.m.
Message ID <mcr8uwbqbpv.fsf@iant-glaptop.roam.corp.google.com>
Download mbox | patch
Permalink /patch/294380/
State New
Headers show

Comments

Ian Taylor - Nov. 26, 2013, 6:06 p.m.
This patch from Michael Hudson-Doyle fixes the value of
SizeofSockaddrAny in the syscall package.  I'm not sure where the
incorrect value came from.  Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu.  Committed to mainline and 4.8 branch.

Ian

Patch

diff -r 8f2a489c6452 -r bcd0cf1ac784 libgo/go/syscall/socket.go
--- a/libgo/go/syscall/socket.go	Sat Nov 23 18:36:25 2013 -0800
+++ b/libgo/go/syscall/socket.go	Mon Nov 25 14:53:31 2013 -0800
@@ -25,7 +25,7 @@ 
 	Pad  [96]int8
 }
 
-const SizeofSockaddrAny = 0x1c
+const SizeofSockaddrAny = 0x6c
 
 type SockaddrInet4 struct {
 	Port int