Patchwork libgo patch committed: Fix typo in socket_bsd.go

login
register
mail settings
Submitter Ian Taylor
Date Jan. 25, 2011, 12:40 a.m.
Message ID <mcrfwsh6ckd.fsf@google.com>
Download mbox | patch
Permalink /patch/80298/
State New
Headers show

Comments

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

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
 	}