]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/common/test_time.cc
import quincy beta 17.1.0
[ceph.git] / ceph / src / test / common / test_time.cc
index 3054aa50ef7acb26c0804116cf2e5cc3d060bfa7..bc19ba573d1fc4d196fd0cf73646c275c1bccf47 100644 (file)
@@ -20,6 +20,7 @@
 #include "gtest/gtest.h"
 #include "include/stringify.h"
 
+using namespace std;
 
 using ceph::real_clock;
 using ceph::real_time;
@@ -51,7 +52,7 @@ static constexpr uint32_t bns = 123456789;
 static constexpr uint32_t bus = 123456;
 static constexpr time_t btt = bs;
 static constexpr struct timespec bts = { bs, bns };
-static struct ceph_timespec bcts = { init_le32(bs), init_le32(bns) };
+static struct ceph_timespec bcts = { ceph_le32(bs), ceph_le32(bns) };
 static constexpr struct timeval btv = { bs, bus };
 static constexpr double bd = bs + ((double)bns / 1000000000.);