bump cri-api

Signed-off-by: zounengren <zouyee1989@gmail.com>
This commit is contained in:
zounengren
2022-08-25 21:03:55 +08:00
parent 36d0cfd0fd
commit 49e2fe2abb
98 changed files with 7095 additions and 2478 deletions

View File

@@ -20,10 +20,9 @@ func bytes2iovec(bs [][]byte) []Iovec {
for i, b := range bs {
iovecs[i].SetLen(len(b))
if len(b) > 0 {
// somehow Iovec.Base on illumos is (*int8), not (*byte)
iovecs[i].Base = (*int8)(unsafe.Pointer(&b[0]))
iovecs[i].Base = &b[0]
} else {
iovecs[i].Base = (*int8)(unsafe.Pointer(&_zero))
iovecs[i].Base = (*byte)(unsafe.Pointer(&_zero))
}
}
return iovecs