Holger Hans Peter Freyther wrote: > the easiest way to avoid the problem of the number to leave the range > of 0 to radio_link_timeout is to use the OSMO_MAX and OSMO_MIN (now > that these macros are fixed). > > Underflow: > lchan->s = OSMO_MAX(lchan->s - 1, 0);
It avoids the problem, but why is it safe? The mere possibility that the counter can become negative suggests an imbalance somewhere in the code - but I don't know if that's the case, which is why I ask. //Peter
