mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
20cfa4a568
commit
55e790a160
8 changed files with 11 additions and 22 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue