aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/unix
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-03-31 16:42:29 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-03-31 16:42:29 +0200
commit3168f03a80b548094032a33c90a7fd0638493b07 (patch)
tree2f59595bf339d537ac178c48a9020e8cfc6f8ead /erts/emulator/drivers/unix
parent785079d7d9c797b57dce9f8ff4dbf4b4fb7042a9 (diff)
downloadotp-3168f03a80b548094032a33c90a7fd0638493b07.tar.gz
otp-3168f03a80b548094032a33c90a7fd0638493b07.tar.bz2
otp-3168f03a80b548094032a33c90a7fd0638493b07.zip
Refactor time_t in efile_drv
Diffstat (limited to 'erts/emulator/drivers/unix')
-rw-r--r--erts/emulator/drivers/unix/unix_efile.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/erts/emulator/drivers/unix/unix_efile.c b/erts/emulator/drivers/unix/unix_efile.c
index ac9b681d03..81ed1996df 100644
--- a/erts/emulator/drivers/unix/unix_efile.c
+++ b/erts/emulator/drivers/unix/unix_efile.c
@@ -537,9 +537,9 @@ efile_fileinfo(Efile_error* errInfo, Efile_info* pInfo,
else
pInfo->type = FT_OTHER;
- pInfo->accessTime = statbuf.st_atime;
- pInfo->modifyTime = statbuf.st_mtime;
- pInfo->cTime = statbuf.st_ctime;
+ pInfo->accessTime = (Sint64)statbuf.st_atime;
+ pInfo->modifyTime = (Sint64)statbuf.st_mtime;
+ pInfo->cTime = (Sint64)statbuf.st_ctime;
pInfo->mode = statbuf.st_mode;
pInfo->links = statbuf.st_nlink;
@@ -578,8 +578,8 @@ efile_write_info(Efile_error *errInfo, Efile_info *pInfo, char *name)
}
}
- tval.actime = pInfo->accessTime;
- tval.modtime = pInfo->modifyTime;
+ tval.actime = (time_t)pInfo->accessTime;
+ tval.modtime = (time_t)pInfo->modifyTime;
return check_error(utime(name, &tval), errInfo);
}