From edb58e3dd10d1fd5d6cc5bf03b1d136d0629b55b Mon Sep 17 00:00:00 2001 From: shirou Date: Thu, 23 May 2024 22:21:59 +0900 Subject: [PATCH] [process][freebsd]: use binary.Read instead of common.Read --- process/process_bsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/process_bsd.go b/process/process_bsd.go index 263829f..4355455 100644 --- a/process/process_bsd.go +++ b/process/process_bsd.go @@ -71,6 +71,6 @@ func (p *Process) EnvironWithContext(ctx context.Context) ([]string, error) { func parseKinfoProc(buf []byte) (KinfoProc, error) { var k KinfoProc br := bytes.NewReader(buf) - err := common.Read(br, binary.LittleEndian, &k) + err := binary.Read(br, binary.LittleEndian, &k) return k, err }