[avahi] More CFLAGS weirdness

Ikke eikke at eikke.com
Wed Aug 10 05:25:50 EST 2005

On Tue, 2005-08-09 at 21:13 +0200, Ikke wrote:
> Please check this diff part:
>      /* 2% jitter */
> -    usec = (AvahiUsec) g_random_double_range((gdouble) (usec*percent),
> (gdouble) (usec*(percent+2)));
> +    usec = (AvahiUsec) g_random_int_range((gdouble) (usec*percent),
> (gdouble) (usec*(percent+2)));
> in avahi-core/cache.c. I don't know whether this is "correct", I think
> it is (nd the compiler likes it too now), its the largest "real code"
> fix I made IIRC :-)

Ok, after a small talk with mezcalero on IRC it looks like my fix is not
correct. This line works fine though, and GCC (3.4.something) eats it
without warning, although actually it should not...

    usec = (gdouble)g_random_double_range((gdouble) (usec*percent),
(gdouble) (usec*(percent+2)));



More information about the avahi mailing list