This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libgo patch committed: Fix SizeofSockaddrAny


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

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]