Skip to content

Commit

Permalink
[process][freebsd]: use binary.Read instead of common.Read
Browse files Browse the repository at this point in the history
  • Loading branch information
shirou committed May 23, 2024
1 parent 5fa412c commit edb58e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process/process_bsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit edb58e3

Please sign in to comment.