> On Don, 2008-09-04 at 20:19 +0200, Henning Rogge wrote:
[...]
> > int time_cmp(const olsr_u32_t t1, const olsr_u32_t t2)
> > {
> >    const olsr_32_t diff = t1 - t2;
> >    if (diff > 0)
> >       return 1;
> >    if (diff < 0)
> >       return -1;
> >    return 0;
> > }

BTW: AM I the only one who misses a sgn() function in C?

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services



