mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-24 13:48:56 +08:00
[process][freebsd]: use binary.Read instead of common.Read
This commit is contained in:
parent
5fa412cc5f
commit
edb58e3dd1
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user