aboutsummaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/sys/plan9/syscall.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-13 11:09:26 +0200
committerGitHub <noreply@github.com>2022-09-13 11:09:26 +0200
commit1b3e8639f3a9041dcbc26b22b9c244a679075734 (patch)
tree3cbe2c5fa5c6acd0918a9d323399dac9ed868278 /vendor/golang.org/x/sys/plan9/syscall.go
parent0f39129551bb59a2274780d35feb57369155caba (diff)
parent9457549fff7aee6246bf2f51659050c74586aed5 (diff)
downloadpodman-1b3e8639f3a9041dcbc26b22b9c244a679075734.tar.gz
podman-1b3e8639f3a9041dcbc26b22b9c244a679075734.tar.bz2
podman-1b3e8639f3a9041dcbc26b22b9c244a679075734.zip
Merge pull request #15750 from containers/dependabot/go_modules/github.com/vbauerster/mpb/v7-7.5.3
build(deps): bump github.com/vbauerster/mpb/v7 from 7.5.2 to 7.5.3
Diffstat (limited to 'vendor/golang.org/x/sys/plan9/syscall.go')
-rw-r--r--vendor/golang.org/x/sys/plan9/syscall.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/vendor/golang.org/x/sys/plan9/syscall.go b/vendor/golang.org/x/sys/plan9/syscall.go
index a25223b8f..ea971285f 100644
--- a/vendor/golang.org/x/sys/plan9/syscall.go
+++ b/vendor/golang.org/x/sys/plan9/syscall.go
@@ -29,8 +29,6 @@ import (
"bytes"
"strings"
"unsafe"
-
- "golang.org/x/sys/internal/unsafeheader"
)
// ByteSliceFromString returns a NUL-terminated slice of bytes
@@ -82,12 +80,7 @@ func BytePtrToString(p *byte) string {
ptr = unsafe.Pointer(uintptr(ptr) + 1)
}
- var s []byte
- h := (*unsafeheader.Slice)(unsafe.Pointer(&s))
- h.Data = unsafe.Pointer(p)
- h.Len = n
- h.Cap = n
-
+ s := unsafe.Slice((*byte)(unsafe.Pointer(p)), n)
return string(s)
}