fix lint warnings

pull/565/head^2
Darien Raymond 2017-08-29 14:50:53 +02:00
parent 52ad41cda3
commit fbbed156db
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
// func xorfwd(x []byte) // func xorfwd(x []byte)
TEXT ·xorfwd(SB),NOSPLIT,$0 TEXT ·xorfwd(SB),NOSPLIT,$0
MOVQ x+0(FP), SI // x[i] MOVQ x+0(FP), SI // x[i]
MOVL x_len+8(FP), CX // x.len MOVQ x_len+8(FP), CX // x.len
MOVQ x+0(FP), DI MOVQ x+0(FP), DI
ADDQ $4, DI // x[i+4] ADDQ $4, DI // x[i+4]
SUBQ $4, CX SUBQ $4, CX
@ -24,7 +24,7 @@ xorfwddone:
// func xorbkd(x []byte) // func xorbkd(x []byte)
TEXT ·xorbkd(SB),NOSPLIT,$0 TEXT ·xorbkd(SB),NOSPLIT,$0
MOVQ x+0(FP), SI MOVQ x+0(FP), SI
MOVL x_len+8(FP), CX // x.len MOVQ x_len+8(FP), CX // x.len
MOVQ x+0(FP), DI MOVQ x+0(FP), DI
ADDQ CX, SI // x[-8] ADDQ CX, SI // x[-8]
SUBQ $8, SI SUBQ $8, SI

View File

@ -69,7 +69,7 @@ func newSimpleServer(config *Config) (*simpleServer, error) {
if err != nil { if err != nil {
return nil, newError("failed apply default log settings").Base(err) return nil, newError("failed apply default log settings").Base(err)
} }
space.AddApplication(l) common.Must(space.AddApplication(l))
} }
outboundHandlerManager := proxyman.OutboundHandlerManagerFromSpace(space) outboundHandlerManager := proxyman.OutboundHandlerManagerFromSpace(space)
@ -115,7 +115,7 @@ func newSimpleServer(config *Config) (*simpleServer, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
space.AddApplication(d) common.Must(space.AddApplication(d))
disp = d.(dispatcher.Interface) disp = d.(dispatcher.Interface)
} }