From e00bd828166fcc821335c03f247542979969c867 Mon Sep 17 00:00:00 2001 From: Rahat Mahmood Date: Tue, 4 May 2021 16:38:25 -0700 Subject: Remove uses of the binary package from the rest of the sentry. PiperOrigin-RevId: 372020696 --- pkg/abi/linux/netdevice.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pkg/abi/linux/netdevice.go') diff --git a/pkg/abi/linux/netdevice.go b/pkg/abi/linux/netdevice.go index 0faf015c7..51a39704b 100644 --- a/pkg/abi/linux/netdevice.go +++ b/pkg/abi/linux/netdevice.go @@ -14,8 +14,6 @@ package linux -import "gvisor.dev/gvisor/pkg/binary" - const ( // IFNAMSIZ is the size of the name field for IFReq. IFNAMSIZ = 16 @@ -66,7 +64,7 @@ func (ifr *IFReq) SetName(name string) { } // SizeOfIFReq is the binary size of an IFReq struct (40 bytes). -var SizeOfIFReq = binary.Size(IFReq{}) +var SizeOfIFReq = (*IFReq)(nil).SizeBytes() // IFMap contains interface hardware parameters. type IFMap struct { -- cgit v1.2.3