X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftimer%2Ftest%2Frun-corrupt.c;h=9fd735b9edfaf420e1da7769d3fc26fb20b36d94;hb=a8f32342d90676f9904b632706caab44313533dd;hp=ee9660481ea92655618f30eeb7f0b7fd6328e6d5;hpb=08dac1288246b1fc9efe1695fe4c7575103e4a2b;p=ccan diff --git a/ccan/timer/test/run-corrupt.c b/ccan/timer/test/run-corrupt.c index ee966048..9fd735b9 100644 --- a/ccan/timer/test/run-corrupt.c +++ b/ccan/timer/test/run-corrupt.c @@ -7,25 +7,25 @@ static void new_timer(struct timers *timers, unsigned long nsec) { struct timer *timer; - struct timeabs when; + struct timemono when; timer = malloc(sizeof(*timer)); timer_init(timer); when.ts.tv_sec = 0; when.ts.tv_nsec = nsec; - timer_add(timers, timer, when); + timer_addmono(timers, timer, when); } static void update_and_expire(struct timers *timers) { - struct timeabs when; + struct timemono when; timer_earliest(timers, &when); free(timers_expire(timers, when)); } -int main(int argc, char *argv[]) +int main(void) { - struct timeabs when; + struct timemono when; struct timers timers; plan_tests(7);