libgo patch committed: Fix typo in socket_bsd.go

Submitted by Ian Taylor on Jan. 25, 2011, 12:40 a.m.

Details

Message ID mcrfwsh6ckd.fsf@google.com
State New
Headers show

Commit Message

Ian Taylor Jan. 25, 2011, 12:40 a.m.
This libgo patch fixes a typo in socket_bsd.go.  Bootstrapped on
x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

Patch hide | download patch | download mbox

diff -r 2405da04b447 libgo/syscalls/socket_bsd.go
--- a/libgo/syscalls/socket_bsd.go	Mon Jan 24 15:39:20 2011 -0800
+++ b/libgo/syscalls/socket_bsd.go	Mon Jan 24 16:38:30 2011 -0800
@@ -43,11 +43,11 @@ 
 	Path [108]int8;
 }
 
-func (sa *RawsockaddrUnix) setLen(n int) {
+func (sa *RawSockaddrUnix) setLen(n int) {
 	sa.Len = uint8(3 + n) // 2 for Family, Len; 1 for NUL.
 }
 
-func (sa *RawsockaddrUnix) getLen() (int, int) {
+func (sa *RawSockaddrUnix) getLen() (int, int) {
 	if sa.Len < 3 || sa.Len > SizeofSockaddrUnix {
 		return 0, EINVAL
 	}