clean up some BUG/TODO in go code

R=r
DELTA=23  (1 added, 12 deleted, 10 changed)
OCL=30957
CL=30980
This commit is contained in:
Russ Cox 2009-07-01 07:32:04 -07:00
parent 20cfa4a568
commit 55e790a160
8 changed files with 11 additions and 22 deletions

View file

@ -777,11 +777,12 @@ func (l *ListenerUnix) AcceptUnix() (c *ConnUnix, raddr string, err os.Error) {
// Accept implements the Accept method in the Listener interface;
// it waits for the next call and returns a generic Conn.
func (l *ListenerUnix) Accept() (c Conn, raddr string, err os.Error) {
// TODO(rsc): 6g bug prevents saying
// c, raddr, err = l.AcceptUnix();
// return;
c1, r1, e1 := l.AcceptUnix();
return c1, r1, e1;
// TODO(rsc): Should return l.AcceptUnix() be okay here?
// There is a type conversion -- the first return arg of
// l.AcceptUnix() is *ConnUnix and it gets converted to Conn
// in the explicit assignment.
c, raddr, err = l.AcceptUnix();
return;
}