X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftimer%2Ftest%2Frun-add.c;h=a7ea4f602a9c255d20741d17359a26ea98d4222a;hp=6c5007c77468bdc44b7291121eeb7ef4580f0a24;hb=daf9ee7d8e2b683ff05283beb1843611ad8c9e8a;hpb=c92b496623f29cfb3ac1ade8e52ffbfa95ab5bcf diff --git a/ccan/timer/test/run-add.c b/ccan/timer/test/run-add.c index 6c5007c7..a7ea4f60 100644 --- a/ccan/timer/test/run-add.c +++ b/ccan/timer/test/run-add.c @@ -20,11 +20,12 @@ int main(void) struct timer t; uint64_t diff; unsigned int i; + struct timeabs epoch = { { 0, 0 } }; /* This is how many tests you plan to run */ plan_tests(2 + (18 + (MAX_ORD - 4) * 3) * (18 + (MAX_ORD - 4) * 3)); - timers_init(&timers, time_from_nsec(0)); + timers_init(&timers, epoch); ok1(timers_check(&timers, NULL)); for (i = 0; i < 4; i++)