From 8c4be43948dbe9a3bafd9d2fa8f350cb3359828e Mon Sep 17 00:00:00 2001 From: Martin Ebourne Date: Tue, 20 Dec 2005 08:20:33 +0000 Subject: Rationalise type usage for time values. Now: Box time is always box_time_t seconds is time_t microseconds is uint64_t --- test/bbackupd/testbbackupd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/bbackupd/testbbackupd.cpp') 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); } -- cgit v1.2.3