On Mon, May 17, 2010 at 05:21:18PM -0700, Steven Dake wrote: > good for merge >
Committed. > On Tue, 2010-05-18 at 10:07 +1000, Angus Salkeld wrote: > > Signed-off-by: Angus Salkeld <[email protected]> > > --- > > exec/totemsrp.c | 4 +++- > > 1 files changed, 3 insertions(+), 1 deletions(-) > > > > diff --git a/exec/totemsrp.c b/exec/totemsrp.c > > index 93e8769..6dfd42d 100644 > > --- a/exec/totemsrp.c > > +++ b/exec/totemsrp.c > > @@ -3279,7 +3279,9 @@ static void fcc_rtr_limit ( > > struct orf_token *token, > > unsigned int *transmits_allowed) > > { > > - assert ((QUEUE_RTR_ITEMS_SIZE_MAX - *transmits_allowed - > > instance->totem_config->window_size) >= 0); > > + int check = QUEUE_RTR_ITEMS_SIZE_MAX; > > + check -= (*transmits_allowed + instance->totem_config->window_size); > > + assert (check >= 0); > > if (sq_lt_compare (instance->last_released + > > QUEUE_RTR_ITEMS_SIZE_MAX - *transmits_allowed - > > instance->totem_config->window_size, _______________________________________________ Openais mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/openais
