aboutsummaryrefslogtreecommitdiffstats
path: root/sys/targets
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-07-15 16:43:33 +0200
committerTaras Madan <tarasmadan@google.com>2025-07-17 08:31:25 +0000
commitabd11cfd08430ec5f9d2c6dbd0e0f798816922d1 (patch)
tree522a8cc072d07d85c8a1d37b5b3ab89483599b48 /sys/targets
parenta81f309b57265e5760b926274e1f1681e7550e41 (diff)
all: apply linter auto fixes
./tools/syz-env bin/golangci-lint run ./... --fix
Diffstat (limited to 'sys/targets')
-rw-r--r--sys/targets/targets.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go
index 1166134bc..67ae9bba4 100644
--- a/sys/targets/targets.go
+++ b/sys/targets/targets.go
@@ -675,7 +675,7 @@ func init() {
// Fix cflags by replacing compiler's -m32 option with -m31
if arch == S390x {
for i := range target.CFlags {
- target.CFlags[i] = strings.Replace(target.CFlags[i], "-m32", "-m31", -1)
+ target.CFlags[i] = strings.ReplaceAll(target.CFlags[i], "-m32", "-m31")
}
}
if runtime.GOOS == OpenBSD {
@@ -924,7 +924,7 @@ func (target *Target) replaceSourceDir(param *string, sourceDir string) {
target.BrokenCompiler = "SOURCEDIR is not set"
return
}
- *param = strings.Replace(*param, sourceDirVar, sourceDir, -1)
+ *param = strings.ReplaceAll(*param, sourceDirVar, sourceDir)
}
func (target *Target) lazyInit() {