Attention is currently required from: laforge, pespin.
2 comments:
File src/sccp_scoc.c:
Patch Set #3, Line 549: int max_attempts = 0x00FFFFFE;
this would better be an unsigned, but fine anyway.
there is a 'while (max_attempts > 0)' below, so I'd rather use an unsigned value -- it's not really needed here, sure, but when there's subtraction and comparison, it's just generally saner to use a signed type. If a bug would accidentally 'max_attempts--' too often, an unsigned type could make that an infinite loop. A signed type would still exit.
Patch Set #3, Line 562: while ((max_attempts--) > 0) {
OSMO_LIKELY(), but not critical.
i'm only starting to get a handle on the LIKELY and UNLIKELY stuff... so you mean like this? <points at next patch set>
To view, visit change 32320. To unsubscribe, or for help writing mail filters, visit settings.