Re: [Spice-devel] [PATCH] avoid to call red_get_streams_timout twice computing timeout

2015-09-03 Thread Jonathon Jongsma
ACK On Fri, 2015-08-21 at 11:16 +0100, Frediano Ziglio wrote: > Due to how the MIN macro is defined the function was called twice > unless the compiler could demonstrate that was returning the same > value (which actually is impossible as function as clock_gettime > are not deterministic). > > Si

[Spice-devel] [PATCH] avoid to call red_get_streams_timout twice computing timeout

2015-08-21 Thread Frediano Ziglio
Due to how the MIN macro is defined the function was called twice unless the compiler could demonstrate that was returning the same value (which actually is impossible as function as clock_gettime are not deterministic). Signed-off-by: Frediano Ziglio --- server/red_worker.c | 9 + 1 fil