mirror of
https://github.com/rancher/os.git
synced 2025-09-02 23:34:57 +00:00
Bump libcompose and sync dependencies
This commit is contained in:
22
vendor/github.com/cloudfoundry/gosigar/sigar_util.go
generated
vendored
22
vendor/github.com/cloudfoundry/gosigar/sigar_util.go
generated
vendored
@@ -1,22 +0,0 @@
|
||||
// Copyright (c) 2012 VMware, Inc.
|
||||
|
||||
package sigar
|
||||
|
||||
import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
func bytePtrToString(ptr *int8) string {
|
||||
bytes := (*[10000]byte)(unsafe.Pointer(ptr))
|
||||
|
||||
n := 0
|
||||
for bytes[n] != 0 {
|
||||
n++
|
||||
}
|
||||
|
||||
return string(bytes[0:n])
|
||||
}
|
||||
|
||||
func chop(buf []byte) []byte {
|
||||
return buf[0 : len(buf)-1]
|
||||
}
|
Reference in New Issue
Block a user