[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kio] src/core: Use struct stat members st_mtime and st_atime to fix compile on Mac.
From:       Allen Winter <allen.winter () kdab ! com>
Date:       2014-05-29 14:40:19
Message-ID: E1Wq1VD-0003VK-BX () scm ! kde ! org
[Download RAW message or body]

Git commit 572308223a1e513642277a116f97870f5b7b09b2 by Allen Winter.
Committed on 29/05/2014 at 14:39.
Pushed by winterz into branch 'master'.

Use struct stat members st_mtime and st_atime to fix compile on Mac.
ack'd by markg85

M  +2    -2    src/core/udsentry.cpp

http://commits.kde.org/kio/572308223a1e513642277a116f97870f5b7b09b2

diff --git a/src/core/udsentry.cpp b/src/core/udsentry.cpp
index 6ec8e11..c6ac21a 100644
--- a/src/core/udsentry.cpp
+++ b/src/core/udsentry.cpp
@@ -67,8 +67,8 @@ UDSEntry::UDSEntry(const QT_STATBUF &buff, const QString =
&name)
     insert(UDS_DEVICE_ID,           buff.st_dev);
     insert(UDS_INODE,               buff.st_ino);
     insert(UDS_ACCESS,              buff.st_mode);
-    insert(UDS_MODIFICATION_TIME,   buff.st_mtim.tv_sec);
-    insert(UDS_ACCESS_TIME,         buff.st_mtim.tv_sec);
+    insert(UDS_MODIFICATION_TIME,   buff.st_mtime);
+    insert(UDS_ACCESS_TIME,         buff.st_atime);
     insert(UDS_USER,                KUser(buff.st_uid).loginName());
     insert(UDS_GROUP,               KUserGroup(buff.st_gid).name());
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic