summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2019-07-23 15:42:35 -0400
committerMatthew Heon <mheon@redhat.com>2019-07-23 15:43:40 -0400
commit7a85317ccb52479c77053e878b5a999cfa69ab41 (patch)
tree16fb4cc087ce07cdd6ef6ac54e1ea7f2319c151c
parentbb253af3fdc9928388bab1fb2063e7d0b79a5e4b (diff)
downloadpodman-7a85317ccb52479c77053e878b5a999cfa69ab41.tar.gz
podman-7a85317ccb52479c77053e878b5a999cfa69ab41.tar.bz2
podman-7a85317ccb52479c77053e878b5a999cfa69ab41.zip
Re-add int64 casts for ctime
The variables here are 64-bit on 64-bit builds, so the linter recommends stripping them. Unfortunately, they're 32-bit on 32-bit builds, so stripping them breaks that. Readd with a nolint to convince it to not break. Signed-off-by: Matthew Heon <mheon@redhat.com>
-rw-r--r--pkg/ctime/ctime_linux.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/ctime/ctime_linux.go b/pkg/ctime/ctime_linux.go
index 28ad959cf..113693e87 100644
--- a/pkg/ctime/ctime_linux.go
+++ b/pkg/ctime/ctime_linux.go
@@ -10,5 +10,6 @@ import (
func created(fi os.FileInfo) time.Time {
st := fi.Sys().(*syscall.Stat_t)
- return time.Unix(st.Ctim.Sec, st.Ctim.Nsec)
+ //nolint
+ return time.Unix(int64(st.Ctim.Sec), int64(st.Ctim.Nsec))
}