aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build/netbsd.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2021-07-14 17:01:48 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2021-07-20 13:39:45 +0200
commitb5969a9bdd1769ae7dc56682c4dbb8bc8f2ab7c3 (patch)
tree1859559654383d8f1b771ece935aca6a1b6371c0 /pkg/build/netbsd.go
parentbc48c9ab65ed47d707bedef64ca52e1a5c383250 (diff)
all: remove pointers to pkg.build.Params
The struct pkg.build.Params is currently primarily passed on as a pointer, which leads make it hard to see the places, where it can (and should) actually be modified. Make it all more explicit by only passing pointer references to objects of this type when the object is expected to be modified by the function. In fact, at this moment there are no such situations.
Diffstat (limited to 'pkg/build/netbsd.go')
-rw-r--r--pkg/build/netbsd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/build/netbsd.go b/pkg/build/netbsd.go
index 309a90299..89b22cf82 100644
--- a/pkg/build/netbsd.go
+++ b/pkg/build/netbsd.go
@@ -22,7 +22,7 @@ import (
type netbsd struct{}
-func (ctx netbsd) build(params *Params) error {
+func (ctx netbsd) build(params Params) error {
const kernelName = "GENERIC_SYZKALLER"
confDir := fmt.Sprintf("%v/sys/arch/%v/conf", params.KernelDir, params.TargetArch)
compileDir := fmt.Sprintf("%v/sys/arch/%v/compile/obj/%v", params.KernelDir, params.TargetArch, kernelName)