- fine-tuning of one-line func heuristic (nodes.go)
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
This commit is contained in:
parent
b501f32b50
commit
372b6eb4c5
18
common.go
18
common.go
@ -106,20 +106,12 @@ func mutualVersion(theirMajor, theirMinor uint8) (major, minor uint8, ok bool) {
|
|||||||
// A nop implements the NULL encryption and MAC algorithms.
|
// A nop implements the NULL encryption and MAC algorithms.
|
||||||
type nop struct{}
|
type nop struct{}
|
||||||
|
|
||||||
func (nop) XORKeyStream(buf []byte) {
|
func (nop) XORKeyStream(buf []byte) {}
|
||||||
}
|
|
||||||
|
|
||||||
func (nop) Write(buf []byte) (int, os.Error) {
|
func (nop) Write(buf []byte) (int, os.Error) { return len(buf), nil }
|
||||||
return len(buf), nil;
|
|
||||||
}
|
|
||||||
|
|
||||||
func (nop) Sum() []byte {
|
func (nop) Sum() []byte { return nil }
|
||||||
return nil;
|
|
||||||
}
|
|
||||||
|
|
||||||
func (nop) Reset() {
|
func (nop) Reset() {}
|
||||||
}
|
|
||||||
|
|
||||||
func (nop) Size() int {
|
func (nop) Size() int { return 0 }
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
8
tls.go
8
tls.go
@ -155,13 +155,9 @@ func (l Listener) Accept() (c net.Conn, err os.Error) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
func (l Listener) Close() os.Error {
|
func (l Listener) Close() os.Error { return l.listener.Close() }
|
||||||
return l.listener.Close();
|
|
||||||
}
|
|
||||||
|
|
||||||
func (l Listener) Addr() net.Addr {
|
func (l Listener) Addr() net.Addr { return l.listener.Addr() }
|
||||||
return l.listener.Addr();
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewListener creates a Listener which accepts connections from an inner
|
// NewListener creates a Listener which accepts connections from an inner
|
||||||
// Listener and wraps each connection with Server.
|
// Listener and wraps each connection with Server.
|
||||||
|
Loading…
Reference in New Issue
Block a user