aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/osutil
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-07-10 18:50:44 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-07-10 19:15:46 +0200
commit78178cfb8c749a862d7df2ac09ee66b956565027 (patch)
tree18fcf83ab4f030042c675e391cb4c9c1f2d03a36 /pkg/osutil
parentd4c58caef7e5fbae992399cb3b28681694468b39 (diff)
tools/syz-linter: fix comments check
Turns out ast.Inspect does not visit most comments. Walk file.Comments manually. Update #1876
Diffstat (limited to 'pkg/osutil')
-rw-r--r--pkg/osutil/osutil_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/osutil/osutil_linux.go b/pkg/osutil/osutil_linux.go
index 30fa892d8..768620d21 100644
--- a/pkg/osutil/osutil_linux.go
+++ b/pkg/osutil/osutil_linux.go
@@ -38,7 +38,7 @@ func RemoveAll(dir string) error {
func SystemMemorySize() uint64 {
var info syscall.Sysinfo_t
syscall.Sysinfo(&info)
- return uint64(info.Totalram) //nolint:unconvert
+ return uint64(info.Totalram) // nolint:unconvert
}
func removeImmutable(fname string) error {