int ack_lost = 0, seg_lost = 0;
if (next_slot == first_slot)
- return (((unsigned int)(1<<31)) - 1);
+ return ((1U<<31) - 1);
/*
* Figure out if we need to issue an ACK. We skip all outstanding packets
}
if (slot == next_slot)
- return (((unsigned int)(1<<31)) - 1);
+ return ((1U<<31) - 1);
/*
* If there is only one slot occupied, or a segment was lost then
if (((first_slot + 1 + 2 * ack_lost) % SEG_HIST_SIZE) >= next_slot)
/* XXX: FIXME, what about when the window is closed */
/* XXX: FIXME, use the correct value for this */
- return (((unsigned int)(1<<31)) - 1);
+ return ((1U<<31) - 1);
else
return seg_hist[(first_slot + 1 + 2 * ack_lost) % SEG_HIST_SIZE].ts +
ack_delay + jitter;
}
for (i = 0; str[i]; i++) {
- if (!isdigit(str[i]))
+ if (!g_ascii_isdigit(str[i]))
return 0;
}