aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2011-12-07 18:52:35 +0100
committerBjörn-Egil Dahlberg <[email protected]>2011-12-08 14:12:03 +0100
commit9dd83933601f3c933718874c13d83ca952febc3f (patch)
tree8ba66f0e3193f480e14c30d6eef39921a6f5060c /erts/emulator/drivers
parent9baa361811a4dd936e73136ea20320423980604b (diff)
downloadotp-9dd83933601f3c933718874c13d83ca952febc3f.tar.gz
otp-9dd83933601f3c933718874c13d83ca952febc3f.tar.bz2
otp-9dd83933601f3c933718874c13d83ca952febc3f.zip
Fix compiler warning in unix_efile.c
Diffstat (limited to 'erts/emulator/drivers')
-rw-r--r--erts/emulator/drivers/unix/unix_efile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/drivers/unix/unix_efile.c b/erts/emulator/drivers/unix/unix_efile.c
index 2e6aa15b06..d2d8713c1e 100644
--- a/erts/emulator/drivers/unix/unix_efile.c
+++ b/erts/emulator/drivers/unix/unix_efile.c
@@ -900,6 +900,8 @@ efile_fileinfo(Efile_error* errInfo, Efile_info* pInfo,
int
efile_write_info(Efile_error *errInfo, Efile_info *pInfo, char *name)
{
+ struct utimbuf tval;
+
CHECK_PATHLEN(name, errInfo);
#ifdef VXWORKS
@@ -952,8 +954,6 @@ efile_write_info(Efile_error *errInfo, Efile_info *pInfo, char *name)
#endif /* !VXWORKS */
- struct utimbuf tval;
-
tval.actime = pInfo->accessTime;
tval.modtime = pInfo->modifyTime;