gofmt: style violations have crept up

This commit is contained in:
Eugene Yakubovich
2014-10-28 17:22:52 -07:00
parent 0e908ca36d
commit ffab401087
9 changed files with 14 additions and 19 deletions

View File

@@ -171,7 +171,6 @@ func NeighDeserialize(m []byte) (*Neigh, error) {
Flags: int(msg.Flags),
}
attrs, err := nl.ParseRouteAttr(m[msg.Len():])
if err != nil {
return nil, err

View File

@@ -45,4 +45,3 @@ func (msg *IfAddrmsg) Serialize() []byte {
func (msg *IfAddrmsg) Len() int {
return syscall.SizeofIfAddrmsg
}

View File

@@ -4,8 +4,8 @@ package nl
import (
"bytes"
"encoding/binary"
"net"
"fmt"
"net"
"sync/atomic"
"syscall"
"unsafe"

View File

@@ -31,4 +31,3 @@ func DeserializeRtMsg(b []byte) *RtMsg {
func (msg *RtMsg) Serialize() []byte {
return (*(*[syscall.SizeofRtMsg]byte)(unsafe.Pointer(msg)))[:]
}

View File

@@ -117,4 +117,3 @@ func DeserializeXfrmUserTmpl(b []byte) *XfrmUserTmpl {
func (msg *XfrmUserTmpl) Serialize() []byte {
return (*(*[SizeofXfrmUserTmpl]byte)(unsafe.Pointer(msg)))[:]
}

View File

@@ -219,4 +219,3 @@ func DeserializeXfrmEncapTmpl(b []byte) *XfrmEncapTmpl {
func (msg *XfrmEncapTmpl) Serialize() []byte {
return (*(*[SizeofXfrmEncapTmpl]byte)(unsafe.Pointer(msg)))[:]
}