summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/kernel/auth/auth_abi_autogen_unsafe.go8
-rw-r--r--pkg/sentry/kernel/kernel_abi_autogen_unsafe.go4
2 files changed, 6 insertions, 6 deletions
diff --git a/pkg/sentry/kernel/auth/auth_abi_autogen_unsafe.go b/pkg/sentry/kernel/auth/auth_abi_autogen_unsafe.go
index e5fe5f599..9ad134451 100644
--- a/pkg/sentry/kernel/auth/auth_abi_autogen_unsafe.go
+++ b/pkg/sentry/kernel/auth/auth_abi_autogen_unsafe.go
@@ -96,7 +96,7 @@ func (gid *GID) CopyIn(cc marshal.CopyContext, addr hostarch.Addr) (int, error)
}
// WriteTo implements io.WriterTo.WriteTo.
-func (gid *GID) WriteTo(w io.Writer) (int64, error) {
+func (gid *GID) WriteTo(writer io.Writer) (int64, error) {
// Construct a slice backed by dst's underlying memory.
var buf []byte
hdr := (*reflect.SliceHeader)(unsafe.Pointer(&buf))
@@ -104,7 +104,7 @@ func (gid *GID) WriteTo(w io.Writer) (int64, error) {
hdr.Len = gid.SizeBytes()
hdr.Cap = gid.SizeBytes()
- length, err := w.Write(buf)
+ length, err := writer.Write(buf)
// Since we bypassed the compiler's escape analysis, indicate that gid
// must live until the use above.
runtime.KeepAlive(gid) // escapes: replaced by intrinsic.
@@ -269,7 +269,7 @@ func (uid *UID) CopyIn(cc marshal.CopyContext, addr hostarch.Addr) (int, error)
}
// WriteTo implements io.WriterTo.WriteTo.
-func (uid *UID) WriteTo(w io.Writer) (int64, error) {
+func (uid *UID) WriteTo(writer io.Writer) (int64, error) {
// Construct a slice backed by dst's underlying memory.
var buf []byte
hdr := (*reflect.SliceHeader)(unsafe.Pointer(&buf))
@@ -277,7 +277,7 @@ func (uid *UID) WriteTo(w io.Writer) (int64, error) {
hdr.Len = uid.SizeBytes()
hdr.Cap = uid.SizeBytes()
- length, err := w.Write(buf)
+ length, err := writer.Write(buf)
// Since we bypassed the compiler's escape analysis, indicate that uid
// must live until the use above.
runtime.KeepAlive(uid) // escapes: replaced by intrinsic.
diff --git a/pkg/sentry/kernel/kernel_abi_autogen_unsafe.go b/pkg/sentry/kernel/kernel_abi_autogen_unsafe.go
index fe5ee7463..ac3e21edf 100644
--- a/pkg/sentry/kernel/kernel_abi_autogen_unsafe.go
+++ b/pkg/sentry/kernel/kernel_abi_autogen_unsafe.go
@@ -96,7 +96,7 @@ func (tid *ThreadID) CopyIn(cc marshal.CopyContext, addr hostarch.Addr) (int, er
}
// WriteTo implements io.WriterTo.WriteTo.
-func (tid *ThreadID) WriteTo(w io.Writer) (int64, error) {
+func (tid *ThreadID) WriteTo(writer io.Writer) (int64, error) {
// Construct a slice backed by dst's underlying memory.
var buf []byte
hdr := (*reflect.SliceHeader)(unsafe.Pointer(&buf))
@@ -104,7 +104,7 @@ func (tid *ThreadID) WriteTo(w io.Writer) (int64, error) {
hdr.Len = tid.SizeBytes()
hdr.Cap = tid.SizeBytes()
- length, err := w.Write(buf)
+ length, err := writer.Write(buf)
// Since we bypassed the compiler's escape analysis, indicate that tid
// must live until the use above.
runtime.KeepAlive(tid) // escapes: replaced by intrinsic.