From patchwork Mon Jul 12 08:39:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [gccgo] libgo RTEMS fix From: Ian Taylor X-Patchwork-Id: 58582 Message-Id: To: gcc-patches@gcc.gnu.org Date: Mon, 12 Jul 2010 01:39:48 -0700 This patch from Vinu Rajashekhar fixes the RTEMS code by using assignment rather than a new variable declaration. Committed to gccgo branch. Ian Index: libgo/go/net/fd_rtems.go =================================================================== --- libgo/go/net/fd_rtems.go (revision 162069) +++ libgo/go/net/fd_rtems.go (working copy) @@ -112,11 +112,11 @@ func (p *pollster) WaitFD(nsec int64) (f for i := p.lastFd; i < p.maxFd + 1; i++ { if syscall.FDIsSet(i, p.readyReadFds) { flag = true - mode := 'r' + mode = 'r' syscall.FDClr(i, p.readyReadFds) } else if syscall.FDIsSet(i, p.readyWriteFds) { flag = true - mode := 'w' + mode = 'w' syscall.FDClr(i, p.readyWriteFds) } if flag {