X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Ftimer.c;h=41f51f94d7e3df48842b333d0ffe141f056d4327;hb=1ddc0f01053b355c5805df3659866e11d50d60d0;hp=54d8277999b6791ace44faee5ff585e254dc6509;hpb=031256ad2e123eec58521f8e3eb9496c197641d2;p=libucw.git diff --git a/ucw/timer.c b/ucw/timer.c index 54d82779..41f51f94 100644 --- a/ucw/timer.c +++ b/ucw/timer.c @@ -36,8 +36,8 @@ get_timer(timestamp_t *timer) } uns -switch_timer(timestamp_t *old, timestamp_t *new) +switch_timer(timestamp_t *oldt, timestamp_t *newt) { - *new = get_timestamp(); - return MIN(*new-*old, ~0U); + *newt = get_timestamp(); + return MIN(*newt-*oldt, ~0U); }