summaryrefslogtreecommitdiff
path: root/test/bbackupd/testbbackupd.cpp
diff options
context:
space:
mode:
authorMartin Ebourne <martin@ebourne.me.uk>2005-12-20 08:20:33 +0000
committerMartin Ebourne <martin@ebourne.me.uk>2005-12-20 08:20:33 +0000
commit8c4be43948dbe9a3bafd9d2fa8f350cb3359828e (patch)
treefc06a296bb9622bd5da7adad52e94d900aa48809 /test/bbackupd/testbbackupd.cpp
parentee95f5d73a7f2ca50d38dea6e862a6c683dfc8cc (diff)
Rationalise type usage for time values. Now:
Box time is always box_time_t seconds is time_t microseconds is uint64_t
Diffstat (limited to 'test/bbackupd/testbbackupd.cpp')
-rw-r--r--test/bbackupd/testbbackupd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp
index acd13a10..560cf16f 100644
--- a/test/bbackupd/testbbackupd.cpp
+++ b/test/bbackupd/testbbackupd.cpp
@@ -452,7 +452,7 @@ int test_bbackupd()
fclose(f);
// and then move the time backwards!
struct timeval times[2];
- BoxTimeToTimeval(SecondsToBoxTime((uint32_t)(365*24*60*60)), times[1]);
+ BoxTimeToTimeval(SecondsToBoxTime((time_t)(365*24*60*60)), times[1]);
times[0] = times[1];
TEST_THAT(::utimes("testfiles/TestDir1/sub23/rand.h", times) == 0);
}
@@ -646,7 +646,7 @@ int test_bbackupd()
fclose(f);
// and then move the time forwards!
struct timeval times[2];
- BoxTimeToTimeval(GetCurrentBoxTime() + SecondsToBoxTime((uint32_t)(365*24*60*60)), times[1]);
+ BoxTimeToTimeval(GetCurrentBoxTime() + SecondsToBoxTime((time_t)(365*24*60*60)), times[1]);
times[0] = times[1];
TEST_THAT(::utimes("testfiles/TestDir1/sub23/in-the-future", times) == 0);
}