ctime: Drop 32-/64-bit distinction on Linux

We added the explicit int64 casts for 32-bit builds in 35e1ad78 (Make
libpod build on 32-bit systems, 2018-02-12, #324), but the explicit
casts work fine on 64-bit systems too.

Signed-off-by: W. Trevor King <wking@tremily.us>

Closes: #1058
Approved by: mheon
This commit is contained in:
W. Trevor King 2018-07-06 09:37:35 -07:00 committed by Atomic Bot
parent 32dd520606
commit 0660108e3e
2 changed files with 1 additions and 15 deletions

View File

@ -1,4 +1,4 @@
// +build arm,linux 386,linux
// +build linux
package ctime

View File

@ -1,14 +0,0 @@
// +build !arm,!386,linux
package ctime
import (
"os"
"syscall"
"time"
)
func created(fi os.FileInfo) time.Time {
st := fi.Sys().(*syscall.Stat_t)
return time.Unix(st.Ctim.Sec, st.Ctim.Nsec)
}